Documentation ¶
Index ¶
- type Client
- func (a *Client) CreateProduct(params *CreateProductParams, opts ...ClientOption) (*CreateProductOK, error)
- func (a *Client) DeleteProducts(params *DeleteProductsParams, opts ...ClientOption) (*DeleteProductsCreated, error)
- func (a *Client) ListProducts(params *ListProductsParams, opts ...ClientOption) (*ListProductsOK, error)
- func (a *Client) ListSingleProduct(params *ListSingleProductParams, opts ...ClientOption) (*ListSingleProductOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateProduct(params *UpdateProductParams, opts ...ClientOption) (*UpdateProductCreated, error)
- type ClientOption
- type ClientService
- type CreateProductNotImplemented
- func (o *CreateProductNotImplemented) Error() string
- func (o *CreateProductNotImplemented) GetPayload() *models.GenericError
- func (o *CreateProductNotImplemented) IsClientError() bool
- func (o *CreateProductNotImplemented) IsCode(code int) bool
- func (o *CreateProductNotImplemented) IsRedirect() bool
- func (o *CreateProductNotImplemented) IsServerError() bool
- func (o *CreateProductNotImplemented) IsSuccess() bool
- func (o *CreateProductNotImplemented) String() string
- type CreateProductOK
- func (o *CreateProductOK) Error() string
- func (o *CreateProductOK) GetPayload() *models.Product
- func (o *CreateProductOK) IsClientError() bool
- func (o *CreateProductOK) IsCode(code int) bool
- func (o *CreateProductOK) IsRedirect() bool
- func (o *CreateProductOK) IsServerError() bool
- func (o *CreateProductOK) IsSuccess() bool
- func (o *CreateProductOK) String() string
- type CreateProductParams
- func (o *CreateProductParams) SetBody(body *models.Product)
- func (o *CreateProductParams) SetContext(ctx context.Context)
- func (o *CreateProductParams) SetDefaults()
- func (o *CreateProductParams) SetHTTPClient(client *http.Client)
- func (o *CreateProductParams) SetTimeout(timeout time.Duration)
- func (o *CreateProductParams) WithBody(body *models.Product) *CreateProductParams
- func (o *CreateProductParams) WithContext(ctx context.Context) *CreateProductParams
- func (o *CreateProductParams) WithDefaults() *CreateProductParams
- func (o *CreateProductParams) WithHTTPClient(client *http.Client) *CreateProductParams
- func (o *CreateProductParams) WithTimeout(timeout time.Duration) *CreateProductParams
- func (o *CreateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateProductReader
- type CreateProductUnprocessableEntity
- func (o *CreateProductUnprocessableEntity) Error() string
- func (o *CreateProductUnprocessableEntity) GetPayload() *models.ValidationError
- func (o *CreateProductUnprocessableEntity) IsClientError() bool
- func (o *CreateProductUnprocessableEntity) IsCode(code int) bool
- func (o *CreateProductUnprocessableEntity) IsRedirect() bool
- func (o *CreateProductUnprocessableEntity) IsServerError() bool
- func (o *CreateProductUnprocessableEntity) IsSuccess() bool
- func (o *CreateProductUnprocessableEntity) String() string
- type DeleteProductsCreated
- func (o *DeleteProductsCreated) Error() string
- func (o *DeleteProductsCreated) IsClientError() bool
- func (o *DeleteProductsCreated) IsCode(code int) bool
- func (o *DeleteProductsCreated) IsRedirect() bool
- func (o *DeleteProductsCreated) IsServerError() bool
- func (o *DeleteProductsCreated) IsSuccess() bool
- func (o *DeleteProductsCreated) String() string
- type DeleteProductsNotFound
- func (o *DeleteProductsNotFound) Error() string
- func (o *DeleteProductsNotFound) GetPayload() *models.GenericError
- func (o *DeleteProductsNotFound) IsClientError() bool
- func (o *DeleteProductsNotFound) IsCode(code int) bool
- func (o *DeleteProductsNotFound) IsRedirect() bool
- func (o *DeleteProductsNotFound) IsServerError() bool
- func (o *DeleteProductsNotFound) IsSuccess() bool
- func (o *DeleteProductsNotFound) String() string
- type DeleteProductsNotImplemented
- func (o *DeleteProductsNotImplemented) Error() string
- func (o *DeleteProductsNotImplemented) GetPayload() *models.GenericError
- func (o *DeleteProductsNotImplemented) IsClientError() bool
- func (o *DeleteProductsNotImplemented) IsCode(code int) bool
- func (o *DeleteProductsNotImplemented) IsRedirect() bool
- func (o *DeleteProductsNotImplemented) IsServerError() bool
- func (o *DeleteProductsNotImplemented) IsSuccess() bool
- func (o *DeleteProductsNotImplemented) String() string
- type DeleteProductsParams
- func NewDeleteProductsParams() *DeleteProductsParams
- func NewDeleteProductsParamsWithContext(ctx context.Context) *DeleteProductsParams
- func NewDeleteProductsParamsWithHTTPClient(client *http.Client) *DeleteProductsParams
- func NewDeleteProductsParamsWithTimeout(timeout time.Duration) *DeleteProductsParams
- func (o *DeleteProductsParams) SetContext(ctx context.Context)
- func (o *DeleteProductsParams) SetDefaults()
- func (o *DeleteProductsParams) SetHTTPClient(client *http.Client)
- func (o *DeleteProductsParams) SetID(id int64)
- func (o *DeleteProductsParams) SetTimeout(timeout time.Duration)
- func (o *DeleteProductsParams) WithContext(ctx context.Context) *DeleteProductsParams
- func (o *DeleteProductsParams) WithDefaults() *DeleteProductsParams
- func (o *DeleteProductsParams) WithHTTPClient(client *http.Client) *DeleteProductsParams
- func (o *DeleteProductsParams) WithID(id int64) *DeleteProductsParams
- func (o *DeleteProductsParams) WithTimeout(timeout time.Duration) *DeleteProductsParams
- func (o *DeleteProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteProductsReader
- type ListProductsOK
- func (o *ListProductsOK) Error() string
- func (o *ListProductsOK) GetPayload() []*models.Product
- func (o *ListProductsOK) IsClientError() bool
- func (o *ListProductsOK) IsCode(code int) bool
- func (o *ListProductsOK) IsRedirect() bool
- func (o *ListProductsOK) IsServerError() bool
- func (o *ListProductsOK) IsSuccess() bool
- func (o *ListProductsOK) String() string
- type ListProductsParams
- func (o *ListProductsParams) SetContext(ctx context.Context)
- func (o *ListProductsParams) SetDefaults()
- func (o *ListProductsParams) SetHTTPClient(client *http.Client)
- func (o *ListProductsParams) SetTimeout(timeout time.Duration)
- func (o *ListProductsParams) WithContext(ctx context.Context) *ListProductsParams
- func (o *ListProductsParams) WithDefaults() *ListProductsParams
- func (o *ListProductsParams) WithHTTPClient(client *http.Client) *ListProductsParams
- func (o *ListProductsParams) WithTimeout(timeout time.Duration) *ListProductsParams
- func (o *ListProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListProductsReader
- type ListSingleProductNotFound
- func (o *ListSingleProductNotFound) Error() string
- func (o *ListSingleProductNotFound) GetPayload() *models.GenericError
- func (o *ListSingleProductNotFound) IsClientError() bool
- func (o *ListSingleProductNotFound) IsCode(code int) bool
- func (o *ListSingleProductNotFound) IsRedirect() bool
- func (o *ListSingleProductNotFound) IsServerError() bool
- func (o *ListSingleProductNotFound) IsSuccess() bool
- func (o *ListSingleProductNotFound) String() string
- type ListSingleProductOK
- func (o *ListSingleProductOK) Error() string
- func (o *ListSingleProductOK) GetPayload() *models.Product
- func (o *ListSingleProductOK) IsClientError() bool
- func (o *ListSingleProductOK) IsCode(code int) bool
- func (o *ListSingleProductOK) IsRedirect() bool
- func (o *ListSingleProductOK) IsServerError() bool
- func (o *ListSingleProductOK) IsSuccess() bool
- func (o *ListSingleProductOK) String() string
- type ListSingleProductParams
- func NewListSingleProductParams() *ListSingleProductParams
- func NewListSingleProductParamsWithContext(ctx context.Context) *ListSingleProductParams
- func NewListSingleProductParamsWithHTTPClient(client *http.Client) *ListSingleProductParams
- func NewListSingleProductParamsWithTimeout(timeout time.Duration) *ListSingleProductParams
- func (o *ListSingleProductParams) SetContext(ctx context.Context)
- func (o *ListSingleProductParams) SetDefaults()
- func (o *ListSingleProductParams) SetHTTPClient(client *http.Client)
- func (o *ListSingleProductParams) SetID(id int64)
- func (o *ListSingleProductParams) SetTimeout(timeout time.Duration)
- func (o *ListSingleProductParams) WithContext(ctx context.Context) *ListSingleProductParams
- func (o *ListSingleProductParams) WithDefaults() *ListSingleProductParams
- func (o *ListSingleProductParams) WithHTTPClient(client *http.Client) *ListSingleProductParams
- func (o *ListSingleProductParams) WithID(id int64) *ListSingleProductParams
- func (o *ListSingleProductParams) WithTimeout(timeout time.Duration) *ListSingleProductParams
- func (o *ListSingleProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSingleProductReader
- type UpdateProductCreated
- func (o *UpdateProductCreated) Error() string
- func (o *UpdateProductCreated) IsClientError() bool
- func (o *UpdateProductCreated) IsCode(code int) bool
- func (o *UpdateProductCreated) IsRedirect() bool
- func (o *UpdateProductCreated) IsServerError() bool
- func (o *UpdateProductCreated) IsSuccess() bool
- func (o *UpdateProductCreated) String() string
- type UpdateProductNotFound
- func (o *UpdateProductNotFound) Error() string
- func (o *UpdateProductNotFound) GetPayload() *models.GenericError
- func (o *UpdateProductNotFound) IsClientError() bool
- func (o *UpdateProductNotFound) IsCode(code int) bool
- func (o *UpdateProductNotFound) IsRedirect() bool
- func (o *UpdateProductNotFound) IsServerError() bool
- func (o *UpdateProductNotFound) IsSuccess() bool
- func (o *UpdateProductNotFound) String() string
- type UpdateProductParams
- func (o *UpdateProductParams) SetBody(body *models.Product)
- func (o *UpdateProductParams) SetContext(ctx context.Context)
- func (o *UpdateProductParams) SetDefaults()
- 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) WithDefaults() *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
- func (o *UpdateProductUnprocessableEntity) Error() string
- func (o *UpdateProductUnprocessableEntity) GetPayload() *models.ValidationError
- func (o *UpdateProductUnprocessableEntity) IsClientError() bool
- func (o *UpdateProductUnprocessableEntity) IsCode(code int) bool
- func (o *UpdateProductUnprocessableEntity) IsRedirect() bool
- func (o *UpdateProductUnprocessableEntity) IsServerError() bool
- func (o *UpdateProductUnprocessableEntity) IsSuccess() bool
- func (o *UpdateProductUnprocessableEntity) String() string
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 products API
func (*Client) CreateProduct ¶
func (a *Client) CreateProduct(params *CreateProductParams, opts ...ClientOption) (*CreateProductOK, error)
CreateProduct Create a new product
func (*Client) DeleteProducts ¶
func (a *Client) DeleteProducts(params *DeleteProductsParams, opts ...ClientOption) (*DeleteProductsCreated, error)
DeleteProducts Returns a list of products
func (*Client) ListProducts ¶
func (a *Client) ListProducts(params *ListProductsParams, opts ...ClientOption) (*ListProductsOK, error)
ListProducts Returns a list of products
func (*Client) ListSingleProduct ¶
func (a *Client) ListSingleProduct(params *ListSingleProductParams, opts ...ClientOption) (*ListSingleProductOK, error)
ListSingleProduct 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, opts ...ClientOption) (*UpdateProductCreated, error)
UpdateProduct Update a products details
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { CreateProduct(params *CreateProductParams, opts ...ClientOption) (*CreateProductOK, error) DeleteProducts(params *DeleteProductsParams, opts ...ClientOption) (*DeleteProductsCreated, error) ListProducts(params *ListProductsParams, opts ...ClientOption) (*ListProductsOK, error) ListSingleProduct(params *ListSingleProductParams, opts ...ClientOption) (*ListSingleProductOK, error) UpdateProduct(params *UpdateProductParams, opts ...ClientOption) (*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 CreateProductNotImplemented ¶
type CreateProductNotImplemented struct {
Payload *models.GenericError
}
CreateProductNotImplemented describes a response with status code 501, with default header values.
Generic error message returned as a string
func NewCreateProductNotImplemented ¶
func NewCreateProductNotImplemented() *CreateProductNotImplemented
NewCreateProductNotImplemented creates a CreateProductNotImplemented with default headers values
func (*CreateProductNotImplemented) Error ¶
func (o *CreateProductNotImplemented) Error() string
func (*CreateProductNotImplemented) GetPayload ¶
func (o *CreateProductNotImplemented) GetPayload() *models.GenericError
func (*CreateProductNotImplemented) IsClientError ¶
func (o *CreateProductNotImplemented) IsClientError() bool
IsClientError returns true when this create product not implemented response has a 4xx status code
func (*CreateProductNotImplemented) IsCode ¶
func (o *CreateProductNotImplemented) IsCode(code int) bool
IsCode returns true when this create product not implemented response a status code equal to that given
func (*CreateProductNotImplemented) IsRedirect ¶
func (o *CreateProductNotImplemented) IsRedirect() bool
IsRedirect returns true when this create product not implemented response has a 3xx status code
func (*CreateProductNotImplemented) IsServerError ¶
func (o *CreateProductNotImplemented) IsServerError() bool
IsServerError returns true when this create product not implemented response has a 5xx status code
func (*CreateProductNotImplemented) IsSuccess ¶
func (o *CreateProductNotImplemented) IsSuccess() bool
IsSuccess returns true when this create product not implemented response has a 2xx status code
func (*CreateProductNotImplemented) String ¶
func (o *CreateProductNotImplemented) String() string
type CreateProductOK ¶
CreateProductOK describes a response with status code 200, with default header values.
Data structure representing a single product
func NewCreateProductOK ¶
func NewCreateProductOK() *CreateProductOK
NewCreateProductOK creates a CreateProductOK with default headers values
func (*CreateProductOK) Error ¶
func (o *CreateProductOK) Error() string
func (*CreateProductOK) GetPayload ¶
func (o *CreateProductOK) GetPayload() *models.Product
func (*CreateProductOK) IsClientError ¶
func (o *CreateProductOK) IsClientError() bool
IsClientError returns true when this create product o k response has a 4xx status code
func (*CreateProductOK) IsCode ¶
func (o *CreateProductOK) IsCode(code int) bool
IsCode returns true when this create product o k response a status code equal to that given
func (*CreateProductOK) IsRedirect ¶
func (o *CreateProductOK) IsRedirect() bool
IsRedirect returns true when this create product o k response has a 3xx status code
func (*CreateProductOK) IsServerError ¶
func (o *CreateProductOK) IsServerError() bool
IsServerError returns true when this create product o k response has a 5xx status code
func (*CreateProductOK) IsSuccess ¶
func (o *CreateProductOK) IsSuccess() bool
IsSuccess returns true when this create product o k response has a 2xx status code
func (*CreateProductOK) String ¶
func (o *CreateProductOK) String() string
type CreateProductParams ¶
type CreateProductParams 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 }
CreateProductParams contains all the parameters to send to the API endpoint
for the create product operation. Typically these are written to a http.Request.
func NewCreateProductParams ¶
func NewCreateProductParams() *CreateProductParams
NewCreateProductParams creates a new CreateProductParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewCreateProductParamsWithContext ¶
func NewCreateProductParamsWithContext(ctx context.Context) *CreateProductParams
NewCreateProductParamsWithContext creates a new CreateProductParams object with the ability to set a context for a request.
func NewCreateProductParamsWithHTTPClient ¶
func NewCreateProductParamsWithHTTPClient(client *http.Client) *CreateProductParams
NewCreateProductParamsWithHTTPClient creates a new CreateProductParams object with the ability to set a custom HTTPClient for a request.
func NewCreateProductParamsWithTimeout ¶
func NewCreateProductParamsWithTimeout(timeout time.Duration) *CreateProductParams
NewCreateProductParamsWithTimeout creates a new CreateProductParams object with the ability to set a timeout on a request.
func (*CreateProductParams) SetBody ¶
func (o *CreateProductParams) SetBody(body *models.Product)
SetBody adds the body to the create product params
func (*CreateProductParams) SetContext ¶
func (o *CreateProductParams) SetContext(ctx context.Context)
SetContext adds the context to the create product params
func (*CreateProductParams) SetDefaults ¶
func (o *CreateProductParams) SetDefaults()
SetDefaults hydrates default values in the create product params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProductParams) SetHTTPClient ¶
func (o *CreateProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create product params
func (*CreateProductParams) SetTimeout ¶
func (o *CreateProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create product params
func (*CreateProductParams) WithBody ¶
func (o *CreateProductParams) WithBody(body *models.Product) *CreateProductParams
WithBody adds the body to the create product params
func (*CreateProductParams) WithContext ¶
func (o *CreateProductParams) WithContext(ctx context.Context) *CreateProductParams
WithContext adds the context to the create product params
func (*CreateProductParams) WithDefaults ¶
func (o *CreateProductParams) WithDefaults() *CreateProductParams
WithDefaults hydrates default values in the create product params (not the query body).
All values with no default are reset to their zero value.
func (*CreateProductParams) WithHTTPClient ¶
func (o *CreateProductParams) WithHTTPClient(client *http.Client) *CreateProductParams
WithHTTPClient adds the HTTPClient to the create product params
func (*CreateProductParams) WithTimeout ¶
func (o *CreateProductParams) WithTimeout(timeout time.Duration) *CreateProductParams
WithTimeout adds the timeout to the create product params
func (*CreateProductParams) WriteToRequest ¶
func (o *CreateProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateProductReader ¶
type CreateProductReader struct {
// contains filtered or unexported fields
}
CreateProductReader is a Reader for the CreateProduct structure.
func (*CreateProductReader) ReadResponse ¶
func (o *CreateProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateProductUnprocessableEntity ¶
type CreateProductUnprocessableEntity struct {
Payload *models.ValidationError
}
CreateProductUnprocessableEntity describes a response with status code 422, with default header values.
Validation errors defined as an array of strings
func NewCreateProductUnprocessableEntity ¶
func NewCreateProductUnprocessableEntity() *CreateProductUnprocessableEntity
NewCreateProductUnprocessableEntity creates a CreateProductUnprocessableEntity with default headers values
func (*CreateProductUnprocessableEntity) Error ¶
func (o *CreateProductUnprocessableEntity) Error() string
func (*CreateProductUnprocessableEntity) GetPayload ¶
func (o *CreateProductUnprocessableEntity) GetPayload() *models.ValidationError
func (*CreateProductUnprocessableEntity) IsClientError ¶
func (o *CreateProductUnprocessableEntity) IsClientError() bool
IsClientError returns true when this create product unprocessable entity response has a 4xx status code
func (*CreateProductUnprocessableEntity) IsCode ¶
func (o *CreateProductUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this create product unprocessable entity response a status code equal to that given
func (*CreateProductUnprocessableEntity) IsRedirect ¶
func (o *CreateProductUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this create product unprocessable entity response has a 3xx status code
func (*CreateProductUnprocessableEntity) IsServerError ¶
func (o *CreateProductUnprocessableEntity) IsServerError() bool
IsServerError returns true when this create product unprocessable entity response has a 5xx status code
func (*CreateProductUnprocessableEntity) IsSuccess ¶
func (o *CreateProductUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this create product unprocessable entity response has a 2xx status code
func (*CreateProductUnprocessableEntity) String ¶
func (o *CreateProductUnprocessableEntity) String() string
type DeleteProductsCreated ¶
type DeleteProductsCreated struct { }
DeleteProductsCreated describes a response with status code 201, with default header values.
No content is returned by this API endpoint
func NewDeleteProductsCreated ¶
func NewDeleteProductsCreated() *DeleteProductsCreated
NewDeleteProductsCreated creates a DeleteProductsCreated with default headers values
func (*DeleteProductsCreated) Error ¶
func (o *DeleteProductsCreated) Error() string
func (*DeleteProductsCreated) IsClientError ¶
func (o *DeleteProductsCreated) IsClientError() bool
IsClientError returns true when this delete products created response has a 4xx status code
func (*DeleteProductsCreated) IsCode ¶
func (o *DeleteProductsCreated) IsCode(code int) bool
IsCode returns true when this delete products created response a status code equal to that given
func (*DeleteProductsCreated) IsRedirect ¶
func (o *DeleteProductsCreated) IsRedirect() bool
IsRedirect returns true when this delete products created response has a 3xx status code
func (*DeleteProductsCreated) IsServerError ¶
func (o *DeleteProductsCreated) IsServerError() bool
IsServerError returns true when this delete products created response has a 5xx status code
func (*DeleteProductsCreated) IsSuccess ¶
func (o *DeleteProductsCreated) IsSuccess() bool
IsSuccess returns true when this delete products created response has a 2xx status code
func (*DeleteProductsCreated) String ¶
func (o *DeleteProductsCreated) String() string
type DeleteProductsNotFound ¶
type DeleteProductsNotFound struct {
Payload *models.GenericError
}
DeleteProductsNotFound describes a response with status code 404, with default header values.
Generic error message returned as a string
func NewDeleteProductsNotFound ¶
func NewDeleteProductsNotFound() *DeleteProductsNotFound
NewDeleteProductsNotFound creates a DeleteProductsNotFound with default headers values
func (*DeleteProductsNotFound) Error ¶
func (o *DeleteProductsNotFound) Error() string
func (*DeleteProductsNotFound) GetPayload ¶
func (o *DeleteProductsNotFound) GetPayload() *models.GenericError
func (*DeleteProductsNotFound) IsClientError ¶
func (o *DeleteProductsNotFound) IsClientError() bool
IsClientError returns true when this delete products not found response has a 4xx status code
func (*DeleteProductsNotFound) IsCode ¶
func (o *DeleteProductsNotFound) IsCode(code int) bool
IsCode returns true when this delete products not found response a status code equal to that given
func (*DeleteProductsNotFound) IsRedirect ¶
func (o *DeleteProductsNotFound) IsRedirect() bool
IsRedirect returns true when this delete products not found response has a 3xx status code
func (*DeleteProductsNotFound) IsServerError ¶
func (o *DeleteProductsNotFound) IsServerError() bool
IsServerError returns true when this delete products not found response has a 5xx status code
func (*DeleteProductsNotFound) IsSuccess ¶
func (o *DeleteProductsNotFound) IsSuccess() bool
IsSuccess returns true when this delete products not found response has a 2xx status code
func (*DeleteProductsNotFound) String ¶
func (o *DeleteProductsNotFound) String() string
type DeleteProductsNotImplemented ¶
type DeleteProductsNotImplemented struct {
Payload *models.GenericError
}
DeleteProductsNotImplemented describes a response with status code 501, with default header values.
Generic error message returned as a string
func NewDeleteProductsNotImplemented ¶
func NewDeleteProductsNotImplemented() *DeleteProductsNotImplemented
NewDeleteProductsNotImplemented creates a DeleteProductsNotImplemented with default headers values
func (*DeleteProductsNotImplemented) Error ¶
func (o *DeleteProductsNotImplemented) Error() string
func (*DeleteProductsNotImplemented) GetPayload ¶
func (o *DeleteProductsNotImplemented) GetPayload() *models.GenericError
func (*DeleteProductsNotImplemented) IsClientError ¶
func (o *DeleteProductsNotImplemented) IsClientError() bool
IsClientError returns true when this delete products not implemented response has a 4xx status code
func (*DeleteProductsNotImplemented) IsCode ¶
func (o *DeleteProductsNotImplemented) IsCode(code int) bool
IsCode returns true when this delete products not implemented response a status code equal to that given
func (*DeleteProductsNotImplemented) IsRedirect ¶
func (o *DeleteProductsNotImplemented) IsRedirect() bool
IsRedirect returns true when this delete products not implemented response has a 3xx status code
func (*DeleteProductsNotImplemented) IsServerError ¶
func (o *DeleteProductsNotImplemented) IsServerError() bool
IsServerError returns true when this delete products not implemented response has a 5xx status code
func (*DeleteProductsNotImplemented) IsSuccess ¶
func (o *DeleteProductsNotImplemented) IsSuccess() bool
IsSuccess returns true when this delete products not implemented response has a 2xx status code
func (*DeleteProductsNotImplemented) String ¶
func (o *DeleteProductsNotImplemented) String() string
type DeleteProductsParams ¶
type DeleteProductsParams struct { /* ID. The id of the product for which the operation relates Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteProductsParams contains all the parameters to send to the API endpoint
for the delete products operation. Typically these are written to a http.Request.
func NewDeleteProductsParams ¶
func NewDeleteProductsParams() *DeleteProductsParams
NewDeleteProductsParams creates a new DeleteProductsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewDeleteProductsParamsWithContext ¶
func NewDeleteProductsParamsWithContext(ctx context.Context) *DeleteProductsParams
NewDeleteProductsParamsWithContext creates a new DeleteProductsParams object with the ability to set a context for a request.
func NewDeleteProductsParamsWithHTTPClient ¶
func NewDeleteProductsParamsWithHTTPClient(client *http.Client) *DeleteProductsParams
NewDeleteProductsParamsWithHTTPClient creates a new DeleteProductsParams object with the ability to set a custom HTTPClient for a request.
func NewDeleteProductsParamsWithTimeout ¶
func NewDeleteProductsParamsWithTimeout(timeout time.Duration) *DeleteProductsParams
NewDeleteProductsParamsWithTimeout creates a new DeleteProductsParams object with the ability to set a timeout on a request.
func (*DeleteProductsParams) SetContext ¶
func (o *DeleteProductsParams) SetContext(ctx context.Context)
SetContext adds the context to the delete products params
func (*DeleteProductsParams) SetDefaults ¶
func (o *DeleteProductsParams) SetDefaults()
SetDefaults hydrates default values in the delete products params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProductsParams) SetHTTPClient ¶
func (o *DeleteProductsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete products params
func (*DeleteProductsParams) SetID ¶
func (o *DeleteProductsParams) SetID(id int64)
SetID adds the id to the delete products params
func (*DeleteProductsParams) SetTimeout ¶
func (o *DeleteProductsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete products params
func (*DeleteProductsParams) WithContext ¶
func (o *DeleteProductsParams) WithContext(ctx context.Context) *DeleteProductsParams
WithContext adds the context to the delete products params
func (*DeleteProductsParams) WithDefaults ¶
func (o *DeleteProductsParams) WithDefaults() *DeleteProductsParams
WithDefaults hydrates default values in the delete products params (not the query body).
All values with no default are reset to their zero value.
func (*DeleteProductsParams) WithHTTPClient ¶
func (o *DeleteProductsParams) WithHTTPClient(client *http.Client) *DeleteProductsParams
WithHTTPClient adds the HTTPClient to the delete products params
func (*DeleteProductsParams) WithID ¶
func (o *DeleteProductsParams) WithID(id int64) *DeleteProductsParams
WithID adds the id to the delete products params
func (*DeleteProductsParams) WithTimeout ¶
func (o *DeleteProductsParams) WithTimeout(timeout time.Duration) *DeleteProductsParams
WithTimeout adds the timeout to the delete products params
func (*DeleteProductsParams) WriteToRequest ¶
func (o *DeleteProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteProductsReader ¶
type DeleteProductsReader struct {
// contains filtered or unexported fields
}
DeleteProductsReader is a Reader for the DeleteProducts structure.
func (*DeleteProductsReader) ReadResponse ¶
func (o *DeleteProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListProductsOK ¶
ListProductsOK describes a response with status code 200, with default header values.
A list of products
func NewListProductsOK ¶
func NewListProductsOK() *ListProductsOK
NewListProductsOK creates a ListProductsOK with default headers values
func (*ListProductsOK) Error ¶
func (o *ListProductsOK) Error() string
func (*ListProductsOK) GetPayload ¶
func (o *ListProductsOK) GetPayload() []*models.Product
func (*ListProductsOK) IsClientError ¶
func (o *ListProductsOK) IsClientError() bool
IsClientError returns true when this list products o k response has a 4xx status code
func (*ListProductsOK) IsCode ¶
func (o *ListProductsOK) IsCode(code int) bool
IsCode returns true when this list products o k response a status code equal to that given
func (*ListProductsOK) IsRedirect ¶
func (o *ListProductsOK) IsRedirect() bool
IsRedirect returns true when this list products o k response has a 3xx status code
func (*ListProductsOK) IsServerError ¶
func (o *ListProductsOK) IsServerError() bool
IsServerError returns true when this list products o k response has a 5xx status code
func (*ListProductsOK) IsSuccess ¶
func (o *ListProductsOK) IsSuccess() bool
IsSuccess returns true when this list products o k response has a 2xx status code
func (*ListProductsOK) String ¶
func (o *ListProductsOK) String() string
type ListProductsParams ¶
type ListProductsParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListProductsParams contains all the parameters to send to the API endpoint
for the list products operation. Typically these are written to a http.Request.
func NewListProductsParams ¶
func NewListProductsParams() *ListProductsParams
NewListProductsParams creates a new ListProductsParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListProductsParamsWithContext ¶
func NewListProductsParamsWithContext(ctx context.Context) *ListProductsParams
NewListProductsParamsWithContext creates a new ListProductsParams object with the ability to set a context for a request.
func NewListProductsParamsWithHTTPClient ¶
func NewListProductsParamsWithHTTPClient(client *http.Client) *ListProductsParams
NewListProductsParamsWithHTTPClient creates a new ListProductsParams object with the ability to set a custom HTTPClient for a request.
func NewListProductsParamsWithTimeout ¶
func NewListProductsParamsWithTimeout(timeout time.Duration) *ListProductsParams
NewListProductsParamsWithTimeout creates a new ListProductsParams object with the ability to set a timeout on a request.
func (*ListProductsParams) SetContext ¶
func (o *ListProductsParams) SetContext(ctx context.Context)
SetContext adds the context to the list products params
func (*ListProductsParams) SetDefaults ¶
func (o *ListProductsParams) SetDefaults()
SetDefaults hydrates default values in the list products params (not the query body).
All values with no default are reset to their zero value.
func (*ListProductsParams) SetHTTPClient ¶
func (o *ListProductsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list products params
func (*ListProductsParams) SetTimeout ¶
func (o *ListProductsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list products params
func (*ListProductsParams) WithContext ¶
func (o *ListProductsParams) WithContext(ctx context.Context) *ListProductsParams
WithContext adds the context to the list products params
func (*ListProductsParams) WithDefaults ¶
func (o *ListProductsParams) WithDefaults() *ListProductsParams
WithDefaults hydrates default values in the list products params (not the query body).
All values with no default are reset to their zero value.
func (*ListProductsParams) WithHTTPClient ¶
func (o *ListProductsParams) WithHTTPClient(client *http.Client) *ListProductsParams
WithHTTPClient adds the HTTPClient to the list products params
func (*ListProductsParams) WithTimeout ¶
func (o *ListProductsParams) WithTimeout(timeout time.Duration) *ListProductsParams
WithTimeout adds the timeout to the list products params
func (*ListProductsParams) WriteToRequest ¶
func (o *ListProductsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListProductsReader ¶
type ListProductsReader struct {
// contains filtered or unexported fields
}
ListProductsReader is a Reader for the ListProducts structure.
func (*ListProductsReader) ReadResponse ¶
func (o *ListProductsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSingleProductNotFound ¶
type ListSingleProductNotFound struct {
Payload *models.GenericError
}
ListSingleProductNotFound describes a response with status code 404, with default header values.
Generic error message returned as a string
func NewListSingleProductNotFound ¶
func NewListSingleProductNotFound() *ListSingleProductNotFound
NewListSingleProductNotFound creates a ListSingleProductNotFound with default headers values
func (*ListSingleProductNotFound) Error ¶
func (o *ListSingleProductNotFound) Error() string
func (*ListSingleProductNotFound) GetPayload ¶
func (o *ListSingleProductNotFound) GetPayload() *models.GenericError
func (*ListSingleProductNotFound) IsClientError ¶
func (o *ListSingleProductNotFound) IsClientError() bool
IsClientError returns true when this list single product not found response has a 4xx status code
func (*ListSingleProductNotFound) IsCode ¶
func (o *ListSingleProductNotFound) IsCode(code int) bool
IsCode returns true when this list single product not found response a status code equal to that given
func (*ListSingleProductNotFound) IsRedirect ¶
func (o *ListSingleProductNotFound) IsRedirect() bool
IsRedirect returns true when this list single product not found response has a 3xx status code
func (*ListSingleProductNotFound) IsServerError ¶
func (o *ListSingleProductNotFound) IsServerError() bool
IsServerError returns true when this list single product not found response has a 5xx status code
func (*ListSingleProductNotFound) IsSuccess ¶
func (o *ListSingleProductNotFound) IsSuccess() bool
IsSuccess returns true when this list single product not found response has a 2xx status code
func (*ListSingleProductNotFound) String ¶
func (o *ListSingleProductNotFound) String() string
type ListSingleProductOK ¶
ListSingleProductOK describes a response with status code 200, with default header values.
Data structure representing a single product
func NewListSingleProductOK ¶
func NewListSingleProductOK() *ListSingleProductOK
NewListSingleProductOK creates a ListSingleProductOK with default headers values
func (*ListSingleProductOK) Error ¶
func (o *ListSingleProductOK) Error() string
func (*ListSingleProductOK) GetPayload ¶
func (o *ListSingleProductOK) GetPayload() *models.Product
func (*ListSingleProductOK) IsClientError ¶
func (o *ListSingleProductOK) IsClientError() bool
IsClientError returns true when this list single product o k response has a 4xx status code
func (*ListSingleProductOK) IsCode ¶
func (o *ListSingleProductOK) IsCode(code int) bool
IsCode returns true when this list single product o k response a status code equal to that given
func (*ListSingleProductOK) IsRedirect ¶
func (o *ListSingleProductOK) IsRedirect() bool
IsRedirect returns true when this list single product o k response has a 3xx status code
func (*ListSingleProductOK) IsServerError ¶
func (o *ListSingleProductOK) IsServerError() bool
IsServerError returns true when this list single product o k response has a 5xx status code
func (*ListSingleProductOK) IsSuccess ¶
func (o *ListSingleProductOK) IsSuccess() bool
IsSuccess returns true when this list single product o k response has a 2xx status code
func (*ListSingleProductOK) String ¶
func (o *ListSingleProductOK) String() string
type ListSingleProductParams ¶
type ListSingleProductParams struct { /* ID. The id of the product for which the operation relates Format: int64 */ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListSingleProductParams contains all the parameters to send to the API endpoint
for the list single product operation. Typically these are written to a http.Request.
func NewListSingleProductParams ¶
func NewListSingleProductParams() *ListSingleProductParams
NewListSingleProductParams creates a new ListSingleProductParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewListSingleProductParamsWithContext ¶
func NewListSingleProductParamsWithContext(ctx context.Context) *ListSingleProductParams
NewListSingleProductParamsWithContext creates a new ListSingleProductParams object with the ability to set a context for a request.
func NewListSingleProductParamsWithHTTPClient ¶
func NewListSingleProductParamsWithHTTPClient(client *http.Client) *ListSingleProductParams
NewListSingleProductParamsWithHTTPClient creates a new ListSingleProductParams object with the ability to set a custom HTTPClient for a request.
func NewListSingleProductParamsWithTimeout ¶
func NewListSingleProductParamsWithTimeout(timeout time.Duration) *ListSingleProductParams
NewListSingleProductParamsWithTimeout creates a new ListSingleProductParams object with the ability to set a timeout on a request.
func (*ListSingleProductParams) SetContext ¶
func (o *ListSingleProductParams) SetContext(ctx context.Context)
SetContext adds the context to the list single product params
func (*ListSingleProductParams) SetDefaults ¶
func (o *ListSingleProductParams) SetDefaults()
SetDefaults hydrates default values in the list single product params (not the query body).
All values with no default are reset to their zero value.
func (*ListSingleProductParams) SetHTTPClient ¶
func (o *ListSingleProductParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list single product params
func (*ListSingleProductParams) SetID ¶
func (o *ListSingleProductParams) SetID(id int64)
SetID adds the id to the list single product params
func (*ListSingleProductParams) SetTimeout ¶
func (o *ListSingleProductParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list single product params
func (*ListSingleProductParams) WithContext ¶
func (o *ListSingleProductParams) WithContext(ctx context.Context) *ListSingleProductParams
WithContext adds the context to the list single product params
func (*ListSingleProductParams) WithDefaults ¶
func (o *ListSingleProductParams) WithDefaults() *ListSingleProductParams
WithDefaults hydrates default values in the list single product params (not the query body).
All values with no default are reset to their zero value.
func (*ListSingleProductParams) WithHTTPClient ¶
func (o *ListSingleProductParams) WithHTTPClient(client *http.Client) *ListSingleProductParams
WithHTTPClient adds the HTTPClient to the list single product params
func (*ListSingleProductParams) WithID ¶
func (o *ListSingleProductParams) WithID(id int64) *ListSingleProductParams
WithID adds the id to the list single product params
func (*ListSingleProductParams) WithTimeout ¶
func (o *ListSingleProductParams) WithTimeout(timeout time.Duration) *ListSingleProductParams
WithTimeout adds the timeout to the list single product params
func (*ListSingleProductParams) WriteToRequest ¶
func (o *ListSingleProductParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSingleProductReader ¶
type ListSingleProductReader struct {
// contains filtered or unexported fields
}
ListSingleProductReader is a Reader for the ListSingleProduct structure.
func (*ListSingleProductReader) ReadResponse ¶
func (o *ListSingleProductReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateProductCreated ¶
type UpdateProductCreated struct { }
UpdateProductCreated describes a response with status code 201, 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
func (*UpdateProductCreated) IsClientError ¶
func (o *UpdateProductCreated) IsClientError() bool
IsClientError returns true when this update product created response has a 4xx status code
func (*UpdateProductCreated) IsCode ¶
func (o *UpdateProductCreated) IsCode(code int) bool
IsCode returns true when this update product created response a status code equal to that given
func (*UpdateProductCreated) IsRedirect ¶
func (o *UpdateProductCreated) IsRedirect() bool
IsRedirect returns true when this update product created response has a 3xx status code
func (*UpdateProductCreated) IsServerError ¶
func (o *UpdateProductCreated) IsServerError() bool
IsServerError returns true when this update product created response has a 5xx status code
func (*UpdateProductCreated) IsSuccess ¶
func (o *UpdateProductCreated) IsSuccess() bool
IsSuccess returns true when this update product created response has a 2xx status code
func (*UpdateProductCreated) String ¶
func (o *UpdateProductCreated) String() string
type UpdateProductNotFound ¶
type UpdateProductNotFound struct {
Payload *models.GenericError
}
UpdateProductNotFound describes a response with status code 404, 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
func (*UpdateProductNotFound) IsClientError ¶
func (o *UpdateProductNotFound) IsClientError() bool
IsClientError returns true when this update product not found response has a 4xx status code
func (*UpdateProductNotFound) IsCode ¶
func (o *UpdateProductNotFound) IsCode(code int) bool
IsCode returns true when this update product not found response a status code equal to that given
func (*UpdateProductNotFound) IsRedirect ¶
func (o *UpdateProductNotFound) IsRedirect() bool
IsRedirect returns true when this update product not found response has a 3xx status code
func (*UpdateProductNotFound) IsServerError ¶
func (o *UpdateProductNotFound) IsServerError() bool
IsServerError returns true when this update product not found response has a 5xx status code
func (*UpdateProductNotFound) IsSuccess ¶
func (o *UpdateProductNotFound) IsSuccess() bool
IsSuccess returns true when this update product not found response has a 2xx status code
func (*UpdateProductNotFound) String ¶
func (o *UpdateProductNotFound) String() string
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 timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewUpdateProductParamsWithContext ¶
func NewUpdateProductParamsWithContext(ctx context.Context) *UpdateProductParams
NewUpdateProductParamsWithContext creates a new UpdateProductParams object with 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 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 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) SetDefaults ¶
func (o *UpdateProductParams) SetDefaults()
SetDefaults hydrates default values in the update product params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *UpdateProductParams) WithDefaults() *UpdateProductParams
WithDefaults hydrates default values in the update product params (not the query body).
All values with no default are reset to their zero value.
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 describes a response with status code 422, 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
func (*UpdateProductUnprocessableEntity) IsClientError ¶
func (o *UpdateProductUnprocessableEntity) IsClientError() bool
IsClientError returns true when this update product unprocessable entity response has a 4xx status code
func (*UpdateProductUnprocessableEntity) IsCode ¶
func (o *UpdateProductUnprocessableEntity) IsCode(code int) bool
IsCode returns true when this update product unprocessable entity response a status code equal to that given
func (*UpdateProductUnprocessableEntity) IsRedirect ¶
func (o *UpdateProductUnprocessableEntity) IsRedirect() bool
IsRedirect returns true when this update product unprocessable entity response has a 3xx status code
func (*UpdateProductUnprocessableEntity) IsServerError ¶
func (o *UpdateProductUnprocessableEntity) IsServerError() bool
IsServerError returns true when this update product unprocessable entity response has a 5xx status code
func (*UpdateProductUnprocessableEntity) IsSuccess ¶
func (o *UpdateProductUnprocessableEntity) IsSuccess() bool
IsSuccess returns true when this update product unprocessable entity response has a 2xx status code
func (*UpdateProductUnprocessableEntity) String ¶
func (o *UpdateProductUnprocessableEntity) String() string
Source Files ¶
- create_product_parameters.go
- create_product_responses.go
- delete_products_parameters.go
- delete_products_responses.go
- list_products_parameters.go
- list_products_responses.go
- list_single_product_parameters.go
- list_single_product_responses.go
- products_client.go
- update_product_parameters.go
- update_product_responses.go