Documentation ¶
Index ¶
- type Client
- func (a *Client) Create(params *CreateParams) (*CreateOK, error)
- func (a *Client) Delete(params *DeleteParams) (*DeleteCreated, error)
- func (a *Client) ListAll(params *ListAllParams) (*ListAllOK, error)
- func (a *Client) ListSingle(params *ListSingleParams) (*ListSingleOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) Update(params *UpdateParams) (*UpdateCreated, error)
- type ClientService
- type CreateNotImplemented
- type CreateOK
- type CreateParams
- func (o *CreateParams) SetBody(body *models.Product)
- func (o *CreateParams) SetContext(ctx context.Context)
- func (o *CreateParams) SetHTTPClient(client *http.Client)
- func (o *CreateParams) SetTimeout(timeout time.Duration)
- func (o *CreateParams) WithBody(body *models.Product) *CreateParams
- func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
- func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
- func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
- func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateReader
- type CreateUnprocessableEntity
- type DeleteCreated
- type DeleteNotFound
- type DeleteNotImplemented
- type DeleteParams
- func (o *DeleteParams) SetContext(ctx context.Context)
- func (o *DeleteParams) SetHTTPClient(client *http.Client)
- func (o *DeleteParams) SetID(id int64)
- func (o *DeleteParams) SetTimeout(timeout time.Duration)
- func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
- func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
- func (o *DeleteParams) WithID(id int64) *DeleteParams
- func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
- func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteReader
- type ListAllOK
- type ListAllParams
- func (o *ListAllParams) SetContext(ctx context.Context)
- func (o *ListAllParams) SetHTTPClient(client *http.Client)
- func (o *ListAllParams) SetTimeout(timeout time.Duration)
- func (o *ListAllParams) WithContext(ctx context.Context) *ListAllParams
- func (o *ListAllParams) WithHTTPClient(client *http.Client) *ListAllParams
- func (o *ListAllParams) WithTimeout(timeout time.Duration) *ListAllParams
- func (o *ListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListAllReader
- type ListSingleNotFound
- type ListSingleOK
- type ListSingleParams
- func (o *ListSingleParams) SetContext(ctx context.Context)
- func (o *ListSingleParams) SetHTTPClient(client *http.Client)
- func (o *ListSingleParams) SetID(id int64)
- func (o *ListSingleParams) SetTimeout(timeout time.Duration)
- func (o *ListSingleParams) WithContext(ctx context.Context) *ListSingleParams
- func (o *ListSingleParams) WithHTTPClient(client *http.Client) *ListSingleParams
- func (o *ListSingleParams) WithID(id int64) *ListSingleParams
- func (o *ListSingleParams) WithTimeout(timeout time.Duration) *ListSingleParams
- func (o *ListSingleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ListSingleReader
- type UpdateCreated
- type UpdateNotFound
- type UpdateParams
- func (o *UpdateParams) SetBody(body *models.Product)
- func (o *UpdateParams) SetContext(ctx context.Context)
- func (o *UpdateParams) SetHTTPClient(client *http.Client)
- func (o *UpdateParams) SetTimeout(timeout time.Duration)
- func (o *UpdateParams) WithBody(body *models.Product) *UpdateParams
- func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
- func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
- func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
- func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateReader
- type UpdateUnprocessableEntity
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) Create ¶
func (a *Client) Create(params *CreateParams) (*CreateOK, error)
Create Create a new product
func (*Client) Delete ¶
func (a *Client) Delete(params *DeleteParams) (*DeleteCreated, error)
Delete Update a products details
func (*Client) ListAll ¶
func (a *Client) ListAll(params *ListAllParams) (*ListAllOK, error)
ListAll Return a list of products from the database
func (*Client) ListSingle ¶
func (a *Client) ListSingle(params *ListSingleParams) (*ListSingleOK, error)
ListSingle 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) Update ¶
func (a *Client) Update(params *UpdateParams) (*UpdateCreated, error)
Update Update a products details
type ClientService ¶
type ClientService interface { Create(params *CreateParams) (*CreateOK, error) Delete(params *DeleteParams) (*DeleteCreated, error) ListAll(params *ListAllParams) (*ListAllOK, error) ListSingle(params *ListSingleParams) (*ListSingleOK, error) Update(params *UpdateParams) (*UpdateCreated, 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 CreateNotImplemented ¶
type CreateNotImplemented struct {
Payload *models.GenericError
}
CreateNotImplemented handles this case with default header values.
Generic error message returned as a string
func NewCreateNotImplemented ¶
func NewCreateNotImplemented() *CreateNotImplemented
NewCreateNotImplemented creates a CreateNotImplemented with default headers values
func (*CreateNotImplemented) Error ¶
func (o *CreateNotImplemented) Error() string
func (*CreateNotImplemented) GetPayload ¶
func (o *CreateNotImplemented) GetPayload() *models.GenericError
type CreateOK ¶
CreateOK handles this case with default header values.
Data structure representing a single product
func NewCreateOK ¶
func NewCreateOK() *CreateOK
NewCreateOK creates a CreateOK with default headers values
func (*CreateOK) GetPayload ¶
type CreateParams ¶
type CreateParams 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 }
CreateParams contains all the parameters to send to the API endpoint for the create operation typically these are written to a http.Request
func NewCreateParams ¶
func NewCreateParams() *CreateParams
NewCreateParams creates a new CreateParams object with the default values initialized.
func NewCreateParamsWithContext ¶
func NewCreateParamsWithContext(ctx context.Context) *CreateParams
NewCreateParamsWithContext creates a new CreateParams object with the default values initialized, and the ability to set a context for a request
func NewCreateParamsWithHTTPClient ¶
func NewCreateParamsWithHTTPClient(client *http.Client) *CreateParams
NewCreateParamsWithHTTPClient creates a new CreateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateParamsWithTimeout ¶
func NewCreateParamsWithTimeout(timeout time.Duration) *CreateParams
NewCreateParamsWithTimeout creates a new CreateParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateParams) SetBody ¶
func (o *CreateParams) SetBody(body *models.Product)
SetBody adds the body to the create params
func (*CreateParams) SetContext ¶
func (o *CreateParams) SetContext(ctx context.Context)
SetContext adds the context to the create params
func (*CreateParams) SetHTTPClient ¶
func (o *CreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create params
func (*CreateParams) SetTimeout ¶
func (o *CreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create params
func (*CreateParams) WithBody ¶
func (o *CreateParams) WithBody(body *models.Product) *CreateParams
WithBody adds the body to the create params
func (*CreateParams) WithContext ¶
func (o *CreateParams) WithContext(ctx context.Context) *CreateParams
WithContext adds the context to the create params
func (*CreateParams) WithHTTPClient ¶
func (o *CreateParams) WithHTTPClient(client *http.Client) *CreateParams
WithHTTPClient adds the HTTPClient to the create params
func (*CreateParams) WithTimeout ¶
func (o *CreateParams) WithTimeout(timeout time.Duration) *CreateParams
WithTimeout adds the timeout to the create params
func (*CreateParams) WriteToRequest ¶
func (o *CreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateReader ¶
type CreateReader struct {
// contains filtered or unexported fields
}
CreateReader is a Reader for the Create structure.
func (*CreateReader) ReadResponse ¶
func (o *CreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateUnprocessableEntity ¶
type CreateUnprocessableEntity struct {
Payload *models.ValidationError
}
CreateUnprocessableEntity handles this case with default header values.
Validation errors defined as an array of strings
func NewCreateUnprocessableEntity ¶
func NewCreateUnprocessableEntity() *CreateUnprocessableEntity
NewCreateUnprocessableEntity creates a CreateUnprocessableEntity with default headers values
func (*CreateUnprocessableEntity) Error ¶
func (o *CreateUnprocessableEntity) Error() string
func (*CreateUnprocessableEntity) GetPayload ¶
func (o *CreateUnprocessableEntity) GetPayload() *models.ValidationError
type DeleteCreated ¶
type DeleteCreated struct { }
DeleteCreated handles this case with default header values.
No content is returned by this API endpoint
func NewDeleteCreated ¶
func NewDeleteCreated() *DeleteCreated
NewDeleteCreated creates a DeleteCreated with default headers values
func (*DeleteCreated) Error ¶
func (o *DeleteCreated) Error() string
type DeleteNotFound ¶
type DeleteNotFound struct {
Payload *models.GenericError
}
DeleteNotFound handles this case with default header values.
Generic error message returned as a string
func NewDeleteNotFound ¶
func NewDeleteNotFound() *DeleteNotFound
NewDeleteNotFound creates a DeleteNotFound with default headers values
func (*DeleteNotFound) Error ¶
func (o *DeleteNotFound) Error() string
func (*DeleteNotFound) GetPayload ¶
func (o *DeleteNotFound) GetPayload() *models.GenericError
type DeleteNotImplemented ¶
type DeleteNotImplemented struct {
Payload *models.GenericError
}
DeleteNotImplemented handles this case with default header values.
Generic error message returned as a string
func NewDeleteNotImplemented ¶
func NewDeleteNotImplemented() *DeleteNotImplemented
NewDeleteNotImplemented creates a DeleteNotImplemented with default headers values
func (*DeleteNotImplemented) Error ¶
func (o *DeleteNotImplemented) Error() string
func (*DeleteNotImplemented) GetPayload ¶
func (o *DeleteNotImplemented) GetPayload() *models.GenericError
type DeleteParams ¶
type DeleteParams 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 }
DeleteParams contains all the parameters to send to the API endpoint for the delete operation typically these are written to a http.Request
func NewDeleteParams ¶
func NewDeleteParams() *DeleteParams
NewDeleteParams creates a new DeleteParams object with the default values initialized.
func NewDeleteParamsWithContext ¶
func NewDeleteParamsWithContext(ctx context.Context) *DeleteParams
NewDeleteParamsWithContext creates a new DeleteParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteParamsWithHTTPClient ¶
func NewDeleteParamsWithHTTPClient(client *http.Client) *DeleteParams
NewDeleteParamsWithHTTPClient creates a new DeleteParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteParamsWithTimeout ¶
func NewDeleteParamsWithTimeout(timeout time.Duration) *DeleteParams
NewDeleteParamsWithTimeout creates a new DeleteParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteParams) SetContext ¶
func (o *DeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the delete params
func (*DeleteParams) SetHTTPClient ¶
func (o *DeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) SetID ¶
func (o *DeleteParams) SetID(id int64)
SetID adds the id to the delete params
func (*DeleteParams) SetTimeout ¶
func (o *DeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete params
func (*DeleteParams) WithContext ¶
func (o *DeleteParams) WithContext(ctx context.Context) *DeleteParams
WithContext adds the context to the delete params
func (*DeleteParams) WithHTTPClient ¶
func (o *DeleteParams) WithHTTPClient(client *http.Client) *DeleteParams
WithHTTPClient adds the HTTPClient to the delete params
func (*DeleteParams) WithID ¶
func (o *DeleteParams) WithID(id int64) *DeleteParams
WithID adds the id to the delete params
func (*DeleteParams) WithTimeout ¶
func (o *DeleteParams) WithTimeout(timeout time.Duration) *DeleteParams
WithTimeout adds the timeout to the delete params
func (*DeleteParams) WriteToRequest ¶
func (o *DeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteReader ¶
type DeleteReader struct {
// contains filtered or unexported fields
}
DeleteReader is a Reader for the Delete structure.
func (*DeleteReader) ReadResponse ¶
func (o *DeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListAllOK ¶
ListAllOK handles this case with default header values.
A list of products
func NewListAllOK ¶
func NewListAllOK() *ListAllOK
NewListAllOK creates a ListAllOK with default headers values
func (*ListAllOK) GetPayload ¶
type ListAllParams ¶
type ListAllParams struct { Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ListAllParams contains all the parameters to send to the API endpoint for the list all operation typically these are written to a http.Request
func NewListAllParams ¶
func NewListAllParams() *ListAllParams
NewListAllParams creates a new ListAllParams object with the default values initialized.
func NewListAllParamsWithContext ¶
func NewListAllParamsWithContext(ctx context.Context) *ListAllParams
NewListAllParamsWithContext creates a new ListAllParams object with the default values initialized, and the ability to set a context for a request
func NewListAllParamsWithHTTPClient ¶
func NewListAllParamsWithHTTPClient(client *http.Client) *ListAllParams
NewListAllParamsWithHTTPClient creates a new ListAllParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListAllParamsWithTimeout ¶
func NewListAllParamsWithTimeout(timeout time.Duration) *ListAllParams
NewListAllParamsWithTimeout creates a new ListAllParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListAllParams) SetContext ¶
func (o *ListAllParams) SetContext(ctx context.Context)
SetContext adds the context to the list all params
func (*ListAllParams) SetHTTPClient ¶
func (o *ListAllParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list all params
func (*ListAllParams) SetTimeout ¶
func (o *ListAllParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list all params
func (*ListAllParams) WithContext ¶
func (o *ListAllParams) WithContext(ctx context.Context) *ListAllParams
WithContext adds the context to the list all params
func (*ListAllParams) WithHTTPClient ¶
func (o *ListAllParams) WithHTTPClient(client *http.Client) *ListAllParams
WithHTTPClient adds the HTTPClient to the list all params
func (*ListAllParams) WithTimeout ¶
func (o *ListAllParams) WithTimeout(timeout time.Duration) *ListAllParams
WithTimeout adds the timeout to the list all params
func (*ListAllParams) WriteToRequest ¶
func (o *ListAllParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListAllReader ¶
type ListAllReader struct {
// contains filtered or unexported fields
}
ListAllReader is a Reader for the ListAll structure.
func (*ListAllReader) ReadResponse ¶
func (o *ListAllReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ListSingleNotFound ¶
type ListSingleNotFound struct {
Payload *models.GenericError
}
ListSingleNotFound handles this case with default header values.
Generic error message returned as a string
func NewListSingleNotFound ¶
func NewListSingleNotFound() *ListSingleNotFound
NewListSingleNotFound creates a ListSingleNotFound with default headers values
func (*ListSingleNotFound) Error ¶
func (o *ListSingleNotFound) Error() string
func (*ListSingleNotFound) GetPayload ¶
func (o *ListSingleNotFound) GetPayload() *models.GenericError
type ListSingleOK ¶
ListSingleOK handles this case with default header values.
Data structure representing a single product
func NewListSingleOK ¶
func NewListSingleOK() *ListSingleOK
NewListSingleOK creates a ListSingleOK with default headers values
func (*ListSingleOK) Error ¶
func (o *ListSingleOK) Error() string
func (*ListSingleOK) GetPayload ¶
func (o *ListSingleOK) GetPayload() *models.Product
type ListSingleParams ¶
type ListSingleParams 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 }
ListSingleParams contains all the parameters to send to the API endpoint for the list single operation typically these are written to a http.Request
func NewListSingleParams ¶
func NewListSingleParams() *ListSingleParams
NewListSingleParams creates a new ListSingleParams object with the default values initialized.
func NewListSingleParamsWithContext ¶
func NewListSingleParamsWithContext(ctx context.Context) *ListSingleParams
NewListSingleParamsWithContext creates a new ListSingleParams object with the default values initialized, and the ability to set a context for a request
func NewListSingleParamsWithHTTPClient ¶
func NewListSingleParamsWithHTTPClient(client *http.Client) *ListSingleParams
NewListSingleParamsWithHTTPClient creates a new ListSingleParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewListSingleParamsWithTimeout ¶
func NewListSingleParamsWithTimeout(timeout time.Duration) *ListSingleParams
NewListSingleParamsWithTimeout creates a new ListSingleParams object with the default values initialized, and the ability to set a timeout on a request
func (*ListSingleParams) SetContext ¶
func (o *ListSingleParams) SetContext(ctx context.Context)
SetContext adds the context to the list single params
func (*ListSingleParams) SetHTTPClient ¶
func (o *ListSingleParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the list single params
func (*ListSingleParams) SetID ¶
func (o *ListSingleParams) SetID(id int64)
SetID adds the id to the list single params
func (*ListSingleParams) SetTimeout ¶
func (o *ListSingleParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the list single params
func (*ListSingleParams) WithContext ¶
func (o *ListSingleParams) WithContext(ctx context.Context) *ListSingleParams
WithContext adds the context to the list single params
func (*ListSingleParams) WithHTTPClient ¶
func (o *ListSingleParams) WithHTTPClient(client *http.Client) *ListSingleParams
WithHTTPClient adds the HTTPClient to the list single params
func (*ListSingleParams) WithID ¶
func (o *ListSingleParams) WithID(id int64) *ListSingleParams
WithID adds the id to the list single params
func (*ListSingleParams) WithTimeout ¶
func (o *ListSingleParams) WithTimeout(timeout time.Duration) *ListSingleParams
WithTimeout adds the timeout to the list single params
func (*ListSingleParams) WriteToRequest ¶
func (o *ListSingleParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ListSingleReader ¶
type ListSingleReader struct {
// contains filtered or unexported fields
}
ListSingleReader is a Reader for the ListSingle structure.
func (*ListSingleReader) ReadResponse ¶
func (o *ListSingleReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateCreated ¶
type UpdateCreated struct { }
UpdateCreated handles this case with default header values.
No content is returned by this API endpoint
func NewUpdateCreated ¶
func NewUpdateCreated() *UpdateCreated
NewUpdateCreated creates a UpdateCreated with default headers values
func (*UpdateCreated) Error ¶
func (o *UpdateCreated) Error() string
type UpdateNotFound ¶
type UpdateNotFound struct {
Payload *models.GenericError
}
UpdateNotFound handles this case with default header values.
Generic error message returned as a string
func NewUpdateNotFound ¶
func NewUpdateNotFound() *UpdateNotFound
NewUpdateNotFound creates a UpdateNotFound with default headers values
func (*UpdateNotFound) Error ¶
func (o *UpdateNotFound) Error() string
func (*UpdateNotFound) GetPayload ¶
func (o *UpdateNotFound) GetPayload() *models.GenericError
type UpdateParams ¶
type UpdateParams 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 }
UpdateParams contains all the parameters to send to the API endpoint for the update operation typically these are written to a http.Request
func NewUpdateParams ¶
func NewUpdateParams() *UpdateParams
NewUpdateParams creates a new UpdateParams object with the default values initialized.
func NewUpdateParamsWithContext ¶
func NewUpdateParamsWithContext(ctx context.Context) *UpdateParams
NewUpdateParamsWithContext creates a new UpdateParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateParamsWithHTTPClient ¶
func NewUpdateParamsWithHTTPClient(client *http.Client) *UpdateParams
NewUpdateParamsWithHTTPClient creates a new UpdateParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateParamsWithTimeout ¶
func NewUpdateParamsWithTimeout(timeout time.Duration) *UpdateParams
NewUpdateParamsWithTimeout creates a new UpdateParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateParams) SetBody ¶
func (o *UpdateParams) SetBody(body *models.Product)
SetBody adds the body to the update params
func (*UpdateParams) SetContext ¶
func (o *UpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the update params
func (*UpdateParams) SetHTTPClient ¶
func (o *UpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) SetTimeout ¶
func (o *UpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update params
func (*UpdateParams) WithBody ¶
func (o *UpdateParams) WithBody(body *models.Product) *UpdateParams
WithBody adds the body to the update params
func (*UpdateParams) WithContext ¶
func (o *UpdateParams) WithContext(ctx context.Context) *UpdateParams
WithContext adds the context to the update params
func (*UpdateParams) WithHTTPClient ¶
func (o *UpdateParams) WithHTTPClient(client *http.Client) *UpdateParams
WithHTTPClient adds the HTTPClient to the update params
func (*UpdateParams) WithTimeout ¶
func (o *UpdateParams) WithTimeout(timeout time.Duration) *UpdateParams
WithTimeout adds the timeout to the update params
func (*UpdateParams) WriteToRequest ¶
func (o *UpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateReader ¶
type UpdateReader struct {
// contains filtered or unexported fields
}
UpdateReader is a Reader for the Update structure.
func (*UpdateReader) ReadResponse ¶
func (o *UpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateUnprocessableEntity ¶
type UpdateUnprocessableEntity struct {
Payload *models.ValidationError
}
UpdateUnprocessableEntity handles this case with default header values.
Validation errors defined as an array of strings
func NewUpdateUnprocessableEntity ¶
func NewUpdateUnprocessableEntity() *UpdateUnprocessableEntity
NewUpdateUnprocessableEntity creates a UpdateUnprocessableEntity with default headers values
func (*UpdateUnprocessableEntity) Error ¶
func (o *UpdateUnprocessableEntity) Error() string
func (*UpdateUnprocessableEntity) GetPayload ¶
func (o *UpdateUnprocessableEntity) GetPayload() *models.ValidationError