Documentation ¶
Index ¶
- type AddProductNotImplemented
- type AddProductOK
- type AddProductParams
- func (o *AddProductParams) SetBody(body *models.Product)
- func (o *AddProductParams) SetContext(ctx context.Context)
- func (o *AddProductParams) SetHTTPClient(client *http.Client)
- func (o *AddProductParams) SetTimeout(timeout time.Duration)
- func (o *AddProductParams) WithBody(body *models.Product) *AddProductParams
- func (o *AddProductParams) WithContext(ctx context.Context) *AddProductParams
- func (o *AddProductParams) WithHTTPClient(client *http.Client) *AddProductParams
- func (o *AddProductParams) WithTimeout(timeout time.Duration) *AddProductParams
- func (o *AddProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddProductReader
- type AddProductUnprocessableEntity
- type Client
- func (a *Client) AddProduct(params *AddProductParams) (*AddProductOK, error)
- func (a *Client) DeleteProduct(params *DeleteProductParams) (*DeleteProductCreated, error)
- func (a *Client) GetProduct(params *GetProductParams) (*GetProductOK, error)
- func (a *Client) GetProducts(params *GetProductsParams) (*GetProductsOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProduct(params *UpdateProductParams) (*UpdateProductCreated, error)
- type ClientService
- type DeleteProductCreated
- type DeleteProductNotFound
- type DeleteProductNotImplemented
- type DeleteProductParams
- func (o *DeleteProductParams) SetContext(ctx context.Context)
- func (o *DeleteProductParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProductParams) SetID(id int64)
- func (o *DeleteProductParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProductParams) WithContext(ctx context.Context) *DeleteProductParams
- func (o *DeleteProductParams) WithHTTPClient(client *http.Client) *DeleteProductParams
- func (o *DeleteProductParams) WithID(id int64) *DeleteProductParams
- func (o *DeleteProductParams) WithTimeout(timeout time.Duration) *DeleteProductParams
- func (o *DeleteProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProductReader
- type GetProductNotFound
- type GetProductOK
- type GetProductParams
- func (o *GetProductParams) SetContext(ctx context.Context)
- func (o *GetProductParams) SetHTTPClient(client *http.Client)
- func (o *GetProductParams) SetID(id int64)
- func (o *GetProductParams) SetTimeout(timeout time.Duration)
- func (o *GetProductParams) WithContext(ctx context.Context) *GetProductParams
- func (o *GetProductParams) WithHTTPClient(client *http.Client) *GetProductParams
- func (o *GetProductParams) WithID(id int64) *GetProductParams
- func (o *GetProductParams) WithTimeout(timeout time.Duration) *GetProductParams
- func (o *GetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProductReader
- type GetProductsOK
- type GetProductsParams
- func (o *GetProductsParams) SetContext(ctx context.Context)
- func (o *GetProductsParams) SetHTTPClient(client *http.Client)
- func (o *GetProductsParams) SetTimeout(timeout time.Duration)
- func (o *GetProductsParams) WithContext(ctx context.Context) *GetProductsParams
- func (o *GetProductsParams) WithHTTPClient(client *http.Client) *GetProductsParams
- func (o *GetProductsParams) WithTimeout(timeout time.Duration) *GetProductsParams
- func (o *GetProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetProductsReader
- type UpdateProductCreated
- type UpdateProductNotFound
- type UpdateProductParams
- func (o *UpdateProductParams) SetBody(body *models.Product)
- func (o *UpdateProductParams) SetContext(ctx context.Context)
- func (o *UpdateProductParams) SetHTTPClient(client *http.Client)
- func (o *UpdateProductParams) SetTimeout(timeout time.Duration)
- func (o *UpdateProductParams) WithBody(body *models.Product) *UpdateProductParams
- func (o *UpdateProductParams) WithContext(ctx context.Context) *UpdateProductParams
- func (o *UpdateProductParams) WithHTTPClient(client *http.Client) *UpdateProductParams
- func (o *UpdateProductParams) WithTimeout(timeout time.Duration) *UpdateProductParams
- func (o *UpdateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateProductReader
- type UpdateProductUnprocessableEntity
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddProductNotImplemented ¶
type AddProductNotImplemented struct {
Payload *models.GenericError
}
AddProductNotImplemented handles this case with default header values.
Generic error message returned as a string
func NewAddProductNotImplemented ¶
func NewAddProductNotImplemented() *AddProductNotImplemented
NewAddProductNotImplemented creates a AddProductNotImplemented with default headers values
func (*AddProductNotImplemented) Error ¶
func (o *AddProductNotImplemented) Error() string
func (*AddProductNotImplemented) GetPayload ¶
func (o *AddProductNotImplemented) GetPayload() *models.GenericError
type AddProductOK ¶
AddProductOK handles this case with default header values.
Data structure representing a single product
func NewAddProductOK ¶
func NewAddProductOK() *AddProductOK
NewAddProductOK creates a AddProductOK with default headers values
func (*AddProductOK) Error ¶
func (o *AddProductOK) Error() string
func (*AddProductOK) GetPayload ¶
func (o *AddProductOK) GetPayload() *models.Product
type AddProductParams ¶
type AddProductParams struct { /*Body Product data structure to Update or Create. Note: the id field is ignored by update and create operations */ Body *models.Product Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddProductParams contains all the parameters to send to the API endpoint for the add product operation typically these are written to a http.Request
func NewAddProductParams ¶
func NewAddProductParams() *AddProductParams
NewAddProductParams creates a new AddProductParams object with the default values initialized.
func NewAddProductParamsWithContext ¶
func NewAddProductParamsWithContext(ctx context.Context) *AddProductParams
NewAddProductParamsWithContext creates a new AddProductParams object with the default values initialized, and the ability to set a context for a request
func NewAddProductParamsWithHTTPClient ¶
func NewAddProductParamsWithHTTPClient(client *http.Client) *AddProductParams
NewAddProductParamsWithHTTPClient creates a new AddProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddProductParamsWithTimeout ¶
func NewAddProductParamsWithTimeout(timeout time.Duration) *AddProductParams
NewAddProductParamsWithTimeout creates a new AddProductParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddProductParams) SetBody ¶
func (o *AddProductParams) SetBody(body *models.Product)
SetBody adds the body to the add product params
func (*AddProductParams) SetContext ¶
func (o *AddProductParams) SetContext(ctx context.Context)
SetContext adds the context to the add product params
func (*AddProductParams) SetHTTPClient ¶
func (o *AddProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add product params
func (*AddProductParams) SetTimeout ¶
func (o *AddProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add product params
func (*AddProductParams) WithBody ¶
func (o *AddProductParams) WithBody(body *models.Product) *AddProductParams
WithBody adds the body to the add product params
func (*AddProductParams) WithContext ¶
func (o *AddProductParams) WithContext(ctx context.Context) *AddProductParams
WithContext adds the context to the add product params
func (*AddProductParams) WithHTTPClient ¶
func (o *AddProductParams) WithHTTPClient(client *http.Client) *AddProductParams
WithHTTPClient adds the HTTPClient to the add product params
func (*AddProductParams) WithTimeout ¶
func (o *AddProductParams) WithTimeout(timeout time.Duration) *AddProductParams
WithTimeout adds the timeout to the add product params
func (*AddProductParams) WriteToRequest ¶
func (o *AddProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddProductReader ¶
type AddProductReader struct {
// contains filtered or unexported fields
}
AddProductReader is a Reader for the AddProduct structure.
func (*AddProductReader) ReadResponse ¶
func (o *AddProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type AddProductUnprocessableEntity ¶
type AddProductUnprocessableEntity struct {
Payload *models.ValidationError
}
AddProductUnprocessableEntity handles this case with default header values.
Validation errors defined as an array of strings
func NewAddProductUnprocessableEntity ¶
func NewAddProductUnprocessableEntity() *AddProductUnprocessableEntity
NewAddProductUnprocessableEntity creates a AddProductUnprocessableEntity with default headers values
func (*AddProductUnprocessableEntity) Error ¶
func (o *AddProductUnprocessableEntity) Error() string
func (*AddProductUnprocessableEntity) GetPayload ¶
func (o *AddProductUnprocessableEntity) GetPayload() *models.ValidationError
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for products API
func (*Client) AddProduct ¶
func (a *Client) AddProduct(params *AddProductParams) (*AddProductOK, error)
AddProduct Create a new product
func (*Client) DeleteProduct ¶
func (a *Client) DeleteProduct(params *DeleteProductParams) (*DeleteProductCreated, error)
DeleteProduct Delete a product
func (*Client) GetProduct ¶
func (a *Client) GetProduct(params *GetProductParams) (*GetProductOK, error)
GetProduct Return a product from the database
func (*Client) GetProducts ¶
func (a *Client) GetProducts(params *GetProductsParams) (*GetProductsOK, error)
GetProducts Return a list of products from the database
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateProduct ¶
func (a *Client) UpdateProduct(params *UpdateProductParams) (*UpdateProductCreated, error)
UpdateProduct Update a product details
type ClientService ¶
type ClientService interface { AddProduct(params *AddProductParams) (*AddProductOK, error) DeleteProduct(params *DeleteProductParams) (*DeleteProductCreated, error) GetProduct(params *GetProductParams) (*GetProductOK, error) GetProducts(params *GetProductsParams) (*GetProductsOK, error) UpdateProduct(params *UpdateProductParams) (*UpdateProductCreated, 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 products API client.
type DeleteProductCreated ¶
type DeleteProductCreated struct { }
DeleteProductCreated handles this case with default header values.
No content is returned by this API endpoint
func NewDeleteProductCreated ¶
func NewDeleteProductCreated() *DeleteProductCreated
NewDeleteProductCreated creates a DeleteProductCreated with default headers values
func (*DeleteProductCreated) Error ¶
func (o *DeleteProductCreated) Error() string
type DeleteProductNotFound ¶
type DeleteProductNotFound struct {
Payload *models.GenericError
}
DeleteProductNotFound handles this case with default header values.
Generic error message returned as a string
func NewDeleteProductNotFound ¶
func NewDeleteProductNotFound() *DeleteProductNotFound
NewDeleteProductNotFound creates a DeleteProductNotFound with default headers values
func (*DeleteProductNotFound) Error ¶
func (o *DeleteProductNotFound) Error() string
func (*DeleteProductNotFound) GetPayload ¶
func (o *DeleteProductNotFound) GetPayload() *models.GenericError
type DeleteProductNotImplemented ¶
type DeleteProductNotImplemented struct {
Payload *models.GenericError
}
DeleteProductNotImplemented handles this case with default header values.
Generic error message returned as a string
func NewDeleteProductNotImplemented ¶
func NewDeleteProductNotImplemented() *DeleteProductNotImplemented
NewDeleteProductNotImplemented creates a DeleteProductNotImplemented with default headers values
func (*DeleteProductNotImplemented) Error ¶
func (o *DeleteProductNotImplemented) Error() string
func (*DeleteProductNotImplemented) GetPayload ¶
func (o *DeleteProductNotImplemented) GetPayload() *models.GenericError
type DeleteProductParams ¶
type DeleteProductParams struct { /*ID The id of the product for which the operation relates */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteProductParams contains all the parameters to send to the API endpoint for the delete product operation typically these are written to a http.Request
func NewDeleteProductParams ¶
func NewDeleteProductParams() *DeleteProductParams
NewDeleteProductParams creates a new DeleteProductParams object with the default values initialized.
func NewDeleteProductParamsWithContext ¶
func NewDeleteProductParamsWithContext(ctx context.Context) *DeleteProductParams
NewDeleteProductParamsWithContext creates a new DeleteProductParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteProductParamsWithHTTPClient ¶
func NewDeleteProductParamsWithHTTPClient(client *http.Client) *DeleteProductParams
NewDeleteProductParamsWithHTTPClient creates a new DeleteProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteProductParamsWithTimeout ¶
func NewDeleteProductParamsWithTimeout(timeout time.Duration) *DeleteProductParams
NewDeleteProductParamsWithTimeout creates a new DeleteProductParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteProductParams) SetContext ¶
func (o *DeleteProductParams) SetContext(ctx context.Context)
SetContext adds the context to the delete product params
func (*DeleteProductParams) SetHTTPClient ¶
func (o *DeleteProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete product params
func (*DeleteProductParams) SetID ¶
func (o *DeleteProductParams) SetID(id int64)
SetID adds the id to the delete product params
func (*DeleteProductParams) SetTimeout ¶
func (o *DeleteProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete product params
func (*DeleteProductParams) WithContext ¶
func (o *DeleteProductParams) WithContext(ctx context.Context) *DeleteProductParams
WithContext adds the context to the delete product params
func (*DeleteProductParams) WithHTTPClient ¶
func (o *DeleteProductParams) WithHTTPClient(client *http.Client) *DeleteProductParams
WithHTTPClient adds the HTTPClient to the delete product params
func (*DeleteProductParams) WithID ¶
func (o *DeleteProductParams) WithID(id int64) *DeleteProductParams
WithID adds the id to the delete product params
func (*DeleteProductParams) WithTimeout ¶
func (o *DeleteProductParams) WithTimeout(timeout time.Duration) *DeleteProductParams
WithTimeout adds the timeout to the delete product params
func (*DeleteProductParams) WriteToRequest ¶
func (o *DeleteProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProductReader ¶
type DeleteProductReader struct {
// contains filtered or unexported fields
}
DeleteProductReader is a Reader for the DeleteProduct structure.
func (*DeleteProductReader) ReadResponse ¶
func (o *DeleteProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProductNotFound ¶
type GetProductNotFound struct {
Payload *models.GenericError
}
GetProductNotFound handles this case with default header values.
Generic error message returned as a string
func NewGetProductNotFound ¶
func NewGetProductNotFound() *GetProductNotFound
NewGetProductNotFound creates a GetProductNotFound with default headers values
func (*GetProductNotFound) Error ¶
func (o *GetProductNotFound) Error() string
func (*GetProductNotFound) GetPayload ¶
func (o *GetProductNotFound) GetPayload() *models.GenericError
type GetProductOK ¶
GetProductOK handles this case with default header values.
Data structure representing a single product
func NewGetProductOK ¶
func NewGetProductOK() *GetProductOK
NewGetProductOK creates a GetProductOK with default headers values
func (*GetProductOK) Error ¶
func (o *GetProductOK) Error() string
func (*GetProductOK) GetPayload ¶
func (o *GetProductOK) GetPayload() *models.Product
type GetProductParams ¶
type GetProductParams struct { /*ID The id of the product for which the operation relates */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProductParams contains all the parameters to send to the API endpoint for the get product operation typically these are written to a http.Request
func NewGetProductParams ¶
func NewGetProductParams() *GetProductParams
NewGetProductParams creates a new GetProductParams object with the default values initialized.
func NewGetProductParamsWithContext ¶
func NewGetProductParamsWithContext(ctx context.Context) *GetProductParams
NewGetProductParamsWithContext creates a new GetProductParams object with the default values initialized, and the ability to set a context for a request
func NewGetProductParamsWithHTTPClient ¶
func NewGetProductParamsWithHTTPClient(client *http.Client) *GetProductParams
NewGetProductParamsWithHTTPClient creates a new GetProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetProductParamsWithTimeout ¶
func NewGetProductParamsWithTimeout(timeout time.Duration) *GetProductParams
NewGetProductParamsWithTimeout creates a new GetProductParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetProductParams) SetContext ¶
func (o *GetProductParams) SetContext(ctx context.Context)
SetContext adds the context to the get product params
func (*GetProductParams) SetHTTPClient ¶
func (o *GetProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get product params
func (*GetProductParams) SetID ¶
func (o *GetProductParams) SetID(id int64)
SetID adds the id to the get product params
func (*GetProductParams) SetTimeout ¶
func (o *GetProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get product params
func (*GetProductParams) WithContext ¶
func (o *GetProductParams) WithContext(ctx context.Context) *GetProductParams
WithContext adds the context to the get product params
func (*GetProductParams) WithHTTPClient ¶
func (o *GetProductParams) WithHTTPClient(client *http.Client) *GetProductParams
WithHTTPClient adds the HTTPClient to the get product params
func (*GetProductParams) WithID ¶
func (o *GetProductParams) WithID(id int64) *GetProductParams
WithID adds the id to the get product params
func (*GetProductParams) WithTimeout ¶
func (o *GetProductParams) WithTimeout(timeout time.Duration) *GetProductParams
WithTimeout adds the timeout to the get product params
func (*GetProductParams) WriteToRequest ¶
func (o *GetProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProductReader ¶
type GetProductReader struct {
// contains filtered or unexported fields
}
GetProductReader is a Reader for the GetProduct structure.
func (*GetProductReader) ReadResponse ¶
func (o *GetProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetProductsOK ¶
GetProductsOK handles this case with default header values.
A list of products
func NewGetProductsOK ¶
func NewGetProductsOK() *GetProductsOK
NewGetProductsOK creates a GetProductsOK with default headers values
func (*GetProductsOK) Error ¶
func (o *GetProductsOK) Error() string
func (*GetProductsOK) GetPayload ¶
func (o *GetProductsOK) GetPayload() []*models.Product
type GetProductsParams ¶
type GetProductsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetProductsParams contains all the parameters to send to the API endpoint for the get products operation typically these are written to a http.Request
func NewGetProductsParams ¶
func NewGetProductsParams() *GetProductsParams
NewGetProductsParams creates a new GetProductsParams object with the default values initialized.
func NewGetProductsParamsWithContext ¶
func NewGetProductsParamsWithContext(ctx context.Context) *GetProductsParams
NewGetProductsParamsWithContext creates a new GetProductsParams object with the default values initialized, and the ability to set a context for a request
func NewGetProductsParamsWithHTTPClient ¶
func NewGetProductsParamsWithHTTPClient(client *http.Client) *GetProductsParams
NewGetProductsParamsWithHTTPClient creates a new GetProductsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetProductsParamsWithTimeout ¶
func NewGetProductsParamsWithTimeout(timeout time.Duration) *GetProductsParams
NewGetProductsParamsWithTimeout creates a new GetProductsParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetProductsParams) SetContext ¶
func (o *GetProductsParams) SetContext(ctx context.Context)
SetContext adds the context to the get products params
func (*GetProductsParams) SetHTTPClient ¶
func (o *GetProductsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get products params
func (*GetProductsParams) SetTimeout ¶
func (o *GetProductsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get products params
func (*GetProductsParams) WithContext ¶
func (o *GetProductsParams) WithContext(ctx context.Context) *GetProductsParams
WithContext adds the context to the get products params
func (*GetProductsParams) WithHTTPClient ¶
func (o *GetProductsParams) WithHTTPClient(client *http.Client) *GetProductsParams
WithHTTPClient adds the HTTPClient to the get products params
func (*GetProductsParams) WithTimeout ¶
func (o *GetProductsParams) WithTimeout(timeout time.Duration) *GetProductsParams
WithTimeout adds the timeout to the get products params
func (*GetProductsParams) WriteToRequest ¶
func (o *GetProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetProductsReader ¶
type GetProductsReader struct {
// contains filtered or unexported fields
}
GetProductsReader is a Reader for the GetProducts structure.
func (*GetProductsReader) ReadResponse ¶
func (o *GetProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProductCreated ¶
type UpdateProductCreated struct { }
UpdateProductCreated handles this case with default header values.
No content is returned by this API endpoint
func NewUpdateProductCreated ¶
func NewUpdateProductCreated() *UpdateProductCreated
NewUpdateProductCreated creates a UpdateProductCreated with default headers values
func (*UpdateProductCreated) Error ¶
func (o *UpdateProductCreated) Error() string
type UpdateProductNotFound ¶
type UpdateProductNotFound struct {
Payload *models.GenericError
}
UpdateProductNotFound handles this case with default header values.
Generic error message returned as a string
func NewUpdateProductNotFound ¶
func NewUpdateProductNotFound() *UpdateProductNotFound
NewUpdateProductNotFound creates a UpdateProductNotFound with default headers values
func (*UpdateProductNotFound) Error ¶
func (o *UpdateProductNotFound) Error() string
func (*UpdateProductNotFound) GetPayload ¶
func (o *UpdateProductNotFound) GetPayload() *models.GenericError
type UpdateProductParams ¶
type UpdateProductParams struct { /*Body Product data structure to Update or Create. Note: the id field is ignored by update and create operations */ Body *models.Product Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateProductParams contains all the parameters to send to the API endpoint for the update product operation typically these are written to a http.Request
func NewUpdateProductParams ¶
func NewUpdateProductParams() *UpdateProductParams
NewUpdateProductParams creates a new UpdateProductParams object with the default values initialized.
func NewUpdateProductParamsWithContext ¶
func NewUpdateProductParamsWithContext(ctx context.Context) *UpdateProductParams
NewUpdateProductParamsWithContext creates a new UpdateProductParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateProductParamsWithHTTPClient ¶
func NewUpdateProductParamsWithHTTPClient(client *http.Client) *UpdateProductParams
NewUpdateProductParamsWithHTTPClient creates a new UpdateProductParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateProductParamsWithTimeout ¶
func NewUpdateProductParamsWithTimeout(timeout time.Duration) *UpdateProductParams
NewUpdateProductParamsWithTimeout creates a new UpdateProductParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateProductParams) SetBody ¶
func (o *UpdateProductParams) SetBody(body *models.Product)
SetBody adds the body to the update product params
func (*UpdateProductParams) SetContext ¶
func (o *UpdateProductParams) SetContext(ctx context.Context)
SetContext adds the context to the update product params
func (*UpdateProductParams) SetHTTPClient ¶
func (o *UpdateProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update product params
func (*UpdateProductParams) SetTimeout ¶
func (o *UpdateProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update product params
func (*UpdateProductParams) WithBody ¶
func (o *UpdateProductParams) WithBody(body *models.Product) *UpdateProductParams
WithBody adds the body to the update product params
func (*UpdateProductParams) WithContext ¶
func (o *UpdateProductParams) WithContext(ctx context.Context) *UpdateProductParams
WithContext adds the context to the update product params
func (*UpdateProductParams) WithHTTPClient ¶
func (o *UpdateProductParams) WithHTTPClient(client *http.Client) *UpdateProductParams
WithHTTPClient adds the HTTPClient to the update product params
func (*UpdateProductParams) WithTimeout ¶
func (o *UpdateProductParams) WithTimeout(timeout time.Duration) *UpdateProductParams
WithTimeout adds the timeout to the update product params
func (*UpdateProductParams) WriteToRequest ¶
func (o *UpdateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateProductReader ¶
type UpdateProductReader struct {
// contains filtered or unexported fields
}
UpdateProductReader is a Reader for the UpdateProduct structure.
func (*UpdateProductReader) ReadResponse ¶
func (o *UpdateProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProductUnprocessableEntity ¶
type UpdateProductUnprocessableEntity struct {
Payload *models.ValidationError
}
UpdateProductUnprocessableEntity handles this case with default header values.
Validation errors defined as an array of strings
func NewUpdateProductUnprocessableEntity ¶
func NewUpdateProductUnprocessableEntity() *UpdateProductUnprocessableEntity
NewUpdateProductUnprocessableEntity creates a UpdateProductUnprocessableEntity with default headers values
func (*UpdateProductUnprocessableEntity) Error ¶
func (o *UpdateProductUnprocessableEntity) Error() string
func (*UpdateProductUnprocessableEntity) GetPayload ¶
func (o *UpdateProductUnprocessableEntity) GetPayload() *models.ValidationError