Documentation
¶
Index ¶
- type AddOneCreated
- type AddOneDefault
- type AddOneParams
- func (o *AddOneParams) SetBody(body *models.Item)
- func (o *AddOneParams) SetContext(ctx context.Context)
- func (o *AddOneParams) SetHTTPClient(client *http.Client)
- func (o *AddOneParams) SetTimeout(timeout time.Duration)
- func (o *AddOneParams) WithBody(body *models.Item) *AddOneParams
- func (o *AddOneParams) WithContext(ctx context.Context) *AddOneParams
- func (o *AddOneParams) WithHTTPClient(client *http.Client) *AddOneParams
- func (o *AddOneParams) WithTimeout(timeout time.Duration) *AddOneParams
- func (o *AddOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type AddOneReader
- type Client
- func (a *Client) AddOne(params *AddOneParams) (*AddOneCreated, error)
- func (a *Client) DestroyOne(params *DestroyOneParams) (*DestroyOneNoContent, error)
- func (a *Client) FindTodo(params *FindTodoParams) (*FindTodoOK, error)
- func (a *Client) FindTodos(params *FindTodosParams) (*FindTodosOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateOne(params *UpdateOneParams) (*UpdateOneOK, error)
- type DestroyOneDefault
- type DestroyOneNoContent
- type DestroyOneParams
- func (o *DestroyOneParams) SetContext(ctx context.Context)
- func (o *DestroyOneParams) SetHTTPClient(client *http.Client)
- func (o *DestroyOneParams) SetID(id int64)
- func (o *DestroyOneParams) SetTimeout(timeout time.Duration)
- func (o *DestroyOneParams) WithContext(ctx context.Context) *DestroyOneParams
- func (o *DestroyOneParams) WithHTTPClient(client *http.Client) *DestroyOneParams
- func (o *DestroyOneParams) WithID(id int64) *DestroyOneParams
- func (o *DestroyOneParams) WithTimeout(timeout time.Duration) *DestroyOneParams
- func (o *DestroyOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DestroyOneReader
- type FindTodoDefault
- type FindTodoOK
- type FindTodoParams
- func (o *FindTodoParams) SetContext(ctx context.Context)
- func (o *FindTodoParams) SetHTTPClient(client *http.Client)
- func (o *FindTodoParams) SetID(id int64)
- func (o *FindTodoParams) SetTimeout(timeout time.Duration)
- func (o *FindTodoParams) WithContext(ctx context.Context) *FindTodoParams
- func (o *FindTodoParams) WithHTTPClient(client *http.Client) *FindTodoParams
- func (o *FindTodoParams) WithID(id int64) *FindTodoParams
- func (o *FindTodoParams) WithTimeout(timeout time.Duration) *FindTodoParams
- func (o *FindTodoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindTodoReader
- type FindTodosDefault
- type FindTodosOK
- type FindTodosParams
- func (o *FindTodosParams) SetContext(ctx context.Context)
- func (o *FindTodosParams) SetHTTPClient(client *http.Client)
- func (o *FindTodosParams) SetLimit(limit *int32)
- func (o *FindTodosParams) SetSince(since *int64)
- func (o *FindTodosParams) SetTimeout(timeout time.Duration)
- func (o *FindTodosParams) WithContext(ctx context.Context) *FindTodosParams
- func (o *FindTodosParams) WithHTTPClient(client *http.Client) *FindTodosParams
- func (o *FindTodosParams) WithLimit(limit *int32) *FindTodosParams
- func (o *FindTodosParams) WithSince(since *int64) *FindTodosParams
- func (o *FindTodosParams) WithTimeout(timeout time.Duration) *FindTodosParams
- func (o *FindTodosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindTodosReader
- type UpdateOneDefault
- type UpdateOneOK
- type UpdateOneParams
- func (o *UpdateOneParams) SetBody(body *models.Item)
- func (o *UpdateOneParams) SetContext(ctx context.Context)
- func (o *UpdateOneParams) SetHTTPClient(client *http.Client)
- func (o *UpdateOneParams) SetID(id int64)
- func (o *UpdateOneParams) SetTimeout(timeout time.Duration)
- func (o *UpdateOneParams) WithBody(body *models.Item) *UpdateOneParams
- func (o *UpdateOneParams) WithContext(ctx context.Context) *UpdateOneParams
- func (o *UpdateOneParams) WithHTTPClient(client *http.Client) *UpdateOneParams
- func (o *UpdateOneParams) WithID(id int64) *UpdateOneParams
- func (o *UpdateOneParams) WithTimeout(timeout time.Duration) *UpdateOneParams
- func (o *UpdateOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateOneReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AddOneCreated ¶
AddOneCreated handles this case with default header values.
Created
func NewAddOneCreated ¶
func NewAddOneCreated() *AddOneCreated
NewAddOneCreated creates a AddOneCreated with default headers values
func (*AddOneCreated) Error ¶
func (o *AddOneCreated) Error() string
func (*AddOneCreated) GetPayload ¶
func (o *AddOneCreated) GetPayload() *models.Item
type AddOneDefault ¶
AddOneDefault handles this case with default header values.
error
func NewAddOneDefault ¶
func NewAddOneDefault(code int) *AddOneDefault
NewAddOneDefault creates a AddOneDefault with default headers values
func (*AddOneDefault) Code ¶
func (o *AddOneDefault) Code() int
Code gets the status code for the add one default response
func (*AddOneDefault) Error ¶
func (o *AddOneDefault) Error() string
func (*AddOneDefault) GetPayload ¶
func (o *AddOneDefault) GetPayload() *models.Error
type AddOneParams ¶
type AddOneParams struct { /*Body*/ Body *models.Item Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
AddOneParams contains all the parameters to send to the API endpoint for the add one operation typically these are written to a http.Request
func NewAddOneParams ¶
func NewAddOneParams() *AddOneParams
NewAddOneParams creates a new AddOneParams object with the default values initialized.
func NewAddOneParamsWithContext ¶
func NewAddOneParamsWithContext(ctx context.Context) *AddOneParams
NewAddOneParamsWithContext creates a new AddOneParams object with the default values initialized, and the ability to set a context for a request
func NewAddOneParamsWithHTTPClient ¶
func NewAddOneParamsWithHTTPClient(client *http.Client) *AddOneParams
NewAddOneParamsWithHTTPClient creates a new AddOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewAddOneParamsWithTimeout ¶
func NewAddOneParamsWithTimeout(timeout time.Duration) *AddOneParams
NewAddOneParamsWithTimeout creates a new AddOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*AddOneParams) SetBody ¶
func (o *AddOneParams) SetBody(body *models.Item)
SetBody adds the body to the add one params
func (*AddOneParams) SetContext ¶
func (o *AddOneParams) SetContext(ctx context.Context)
SetContext adds the context to the add one params
func (*AddOneParams) SetHTTPClient ¶
func (o *AddOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the add one params
func (*AddOneParams) SetTimeout ¶
func (o *AddOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the add one params
func (*AddOneParams) WithBody ¶
func (o *AddOneParams) WithBody(body *models.Item) *AddOneParams
WithBody adds the body to the add one params
func (*AddOneParams) WithContext ¶
func (o *AddOneParams) WithContext(ctx context.Context) *AddOneParams
WithContext adds the context to the add one params
func (*AddOneParams) WithHTTPClient ¶
func (o *AddOneParams) WithHTTPClient(client *http.Client) *AddOneParams
WithHTTPClient adds the HTTPClient to the add one params
func (*AddOneParams) WithTimeout ¶
func (o *AddOneParams) WithTimeout(timeout time.Duration) *AddOneParams
WithTimeout adds the timeout to the add one params
func (*AddOneParams) WriteToRequest ¶
func (o *AddOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type AddOneReader ¶
type AddOneReader struct {
// contains filtered or unexported fields
}
AddOneReader is a Reader for the AddOne structure.
func (*AddOneReader) ReadResponse ¶
func (o *AddOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for todos API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new todos API client.
func (*Client) AddOne ¶
func (a *Client) AddOne(params *AddOneParams) (*AddOneCreated, error)
AddOne add one API
func (*Client) DestroyOne ¶
func (a *Client) DestroyOne(params *DestroyOneParams) (*DestroyOneNoContent, error)
DestroyOne destroy one API
func (*Client) FindTodo ¶
func (a *Client) FindTodo(params *FindTodoParams) (*FindTodoOK, error)
FindTodo find todo API
func (*Client) FindTodos ¶
func (a *Client) FindTodos(params *FindTodosParams) (*FindTodosOK, error)
FindTodos find todos API
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateOne ¶
func (a *Client) UpdateOne(params *UpdateOneParams) (*UpdateOneOK, error)
UpdateOne update one API
type DestroyOneDefault ¶
DestroyOneDefault handles this case with default header values.
error
func NewDestroyOneDefault ¶
func NewDestroyOneDefault(code int) *DestroyOneDefault
NewDestroyOneDefault creates a DestroyOneDefault with default headers values
func (*DestroyOneDefault) Code ¶
func (o *DestroyOneDefault) Code() int
Code gets the status code for the destroy one default response
func (*DestroyOneDefault) Error ¶
func (o *DestroyOneDefault) Error() string
func (*DestroyOneDefault) GetPayload ¶
func (o *DestroyOneDefault) GetPayload() *models.Error
type DestroyOneNoContent ¶
type DestroyOneNoContent struct { }
DestroyOneNoContent handles this case with default header values.
Deleted
func NewDestroyOneNoContent ¶
func NewDestroyOneNoContent() *DestroyOneNoContent
NewDestroyOneNoContent creates a DestroyOneNoContent with default headers values
func (*DestroyOneNoContent) Error ¶
func (o *DestroyOneNoContent) Error() string
type DestroyOneParams ¶
type DestroyOneParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DestroyOneParams contains all the parameters to send to the API endpoint for the destroy one operation typically these are written to a http.Request
func NewDestroyOneParams ¶
func NewDestroyOneParams() *DestroyOneParams
NewDestroyOneParams creates a new DestroyOneParams object with the default values initialized.
func NewDestroyOneParamsWithContext ¶
func NewDestroyOneParamsWithContext(ctx context.Context) *DestroyOneParams
NewDestroyOneParamsWithContext creates a new DestroyOneParams object with the default values initialized, and the ability to set a context for a request
func NewDestroyOneParamsWithHTTPClient ¶
func NewDestroyOneParamsWithHTTPClient(client *http.Client) *DestroyOneParams
NewDestroyOneParamsWithHTTPClient creates a new DestroyOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDestroyOneParamsWithTimeout ¶
func NewDestroyOneParamsWithTimeout(timeout time.Duration) *DestroyOneParams
NewDestroyOneParamsWithTimeout creates a new DestroyOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*DestroyOneParams) SetContext ¶
func (o *DestroyOneParams) SetContext(ctx context.Context)
SetContext adds the context to the destroy one params
func (*DestroyOneParams) SetHTTPClient ¶
func (o *DestroyOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the destroy one params
func (*DestroyOneParams) SetID ¶
func (o *DestroyOneParams) SetID(id int64)
SetID adds the id to the destroy one params
func (*DestroyOneParams) SetTimeout ¶
func (o *DestroyOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the destroy one params
func (*DestroyOneParams) WithContext ¶
func (o *DestroyOneParams) WithContext(ctx context.Context) *DestroyOneParams
WithContext adds the context to the destroy one params
func (*DestroyOneParams) WithHTTPClient ¶
func (o *DestroyOneParams) WithHTTPClient(client *http.Client) *DestroyOneParams
WithHTTPClient adds the HTTPClient to the destroy one params
func (*DestroyOneParams) WithID ¶
func (o *DestroyOneParams) WithID(id int64) *DestroyOneParams
WithID adds the id to the destroy one params
func (*DestroyOneParams) WithTimeout ¶
func (o *DestroyOneParams) WithTimeout(timeout time.Duration) *DestroyOneParams
WithTimeout adds the timeout to the destroy one params
func (*DestroyOneParams) WriteToRequest ¶
func (o *DestroyOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DestroyOneReader ¶
type DestroyOneReader struct {
// contains filtered or unexported fields
}
DestroyOneReader is a Reader for the DestroyOne structure.
func (*DestroyOneReader) ReadResponse ¶
func (o *DestroyOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindTodoDefault ¶
FindTodoDefault handles this case with default header values.
generic error response
func NewFindTodoDefault ¶
func NewFindTodoDefault(code int) *FindTodoDefault
NewFindTodoDefault creates a FindTodoDefault with default headers values
func (*FindTodoDefault) Code ¶
func (o *FindTodoDefault) Code() int
Code gets the status code for the find todo default response
func (*FindTodoDefault) Error ¶
func (o *FindTodoDefault) Error() string
func (*FindTodoDefault) GetPayload ¶
func (o *FindTodoDefault) GetPayload() *models.Error
type FindTodoOK ¶
FindTodoOK handles this case with default header values.
list the todo
func NewFindTodoOK ¶
func NewFindTodoOK() *FindTodoOK
NewFindTodoOK creates a FindTodoOK with default headers values
func (*FindTodoOK) Error ¶
func (o *FindTodoOK) Error() string
func (*FindTodoOK) GetPayload ¶
func (o *FindTodoOK) GetPayload() []*models.Item
type FindTodoParams ¶
type FindTodoParams struct { /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindTodoParams contains all the parameters to send to the API endpoint for the find todo operation typically these are written to a http.Request
func NewFindTodoParams ¶
func NewFindTodoParams() *FindTodoParams
NewFindTodoParams creates a new FindTodoParams object with the default values initialized.
func NewFindTodoParamsWithContext ¶
func NewFindTodoParamsWithContext(ctx context.Context) *FindTodoParams
NewFindTodoParamsWithContext creates a new FindTodoParams object with the default values initialized, and the ability to set a context for a request
func NewFindTodoParamsWithHTTPClient ¶
func NewFindTodoParamsWithHTTPClient(client *http.Client) *FindTodoParams
NewFindTodoParamsWithHTTPClient creates a new FindTodoParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindTodoParamsWithTimeout ¶
func NewFindTodoParamsWithTimeout(timeout time.Duration) *FindTodoParams
NewFindTodoParamsWithTimeout creates a new FindTodoParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindTodoParams) SetContext ¶
func (o *FindTodoParams) SetContext(ctx context.Context)
SetContext adds the context to the find todo params
func (*FindTodoParams) SetHTTPClient ¶
func (o *FindTodoParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find todo params
func (*FindTodoParams) SetID ¶
func (o *FindTodoParams) SetID(id int64)
SetID adds the id to the find todo params
func (*FindTodoParams) SetTimeout ¶
func (o *FindTodoParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find todo params
func (*FindTodoParams) WithContext ¶
func (o *FindTodoParams) WithContext(ctx context.Context) *FindTodoParams
WithContext adds the context to the find todo params
func (*FindTodoParams) WithHTTPClient ¶
func (o *FindTodoParams) WithHTTPClient(client *http.Client) *FindTodoParams
WithHTTPClient adds the HTTPClient to the find todo params
func (*FindTodoParams) WithID ¶
func (o *FindTodoParams) WithID(id int64) *FindTodoParams
WithID adds the id to the find todo params
func (*FindTodoParams) WithTimeout ¶
func (o *FindTodoParams) WithTimeout(timeout time.Duration) *FindTodoParams
WithTimeout adds the timeout to the find todo params
func (*FindTodoParams) WriteToRequest ¶
func (o *FindTodoParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindTodoReader ¶
type FindTodoReader struct {
// contains filtered or unexported fields
}
FindTodoReader is a Reader for the FindTodo structure.
func (*FindTodoReader) ReadResponse ¶
func (o *FindTodoReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindTodosDefault ¶
FindTodosDefault handles this case with default header values.
generic error response
func NewFindTodosDefault ¶
func NewFindTodosDefault(code int) *FindTodosDefault
NewFindTodosDefault creates a FindTodosDefault with default headers values
func (*FindTodosDefault) Code ¶
func (o *FindTodosDefault) Code() int
Code gets the status code for the find todos default response
func (*FindTodosDefault) Error ¶
func (o *FindTodosDefault) Error() string
func (*FindTodosDefault) GetPayload ¶
func (o *FindTodosDefault) GetPayload() *models.Error
type FindTodosOK ¶
FindTodosOK handles this case with default header values.
list the todo operations
func NewFindTodosOK ¶
func NewFindTodosOK() *FindTodosOK
NewFindTodosOK creates a FindTodosOK with default headers values
func (*FindTodosOK) Error ¶
func (o *FindTodosOK) Error() string
func (*FindTodosOK) GetPayload ¶
func (o *FindTodosOK) GetPayload() []*models.Item
type FindTodosParams ¶
type FindTodosParams struct { /*Limit*/ Limit *int32 /*Since*/ Since *int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindTodosParams contains all the parameters to send to the API endpoint for the find todos operation typically these are written to a http.Request
func NewFindTodosParams ¶
func NewFindTodosParams() *FindTodosParams
NewFindTodosParams creates a new FindTodosParams object with the default values initialized.
func NewFindTodosParamsWithContext ¶
func NewFindTodosParamsWithContext(ctx context.Context) *FindTodosParams
NewFindTodosParamsWithContext creates a new FindTodosParams object with the default values initialized, and the ability to set a context for a request
func NewFindTodosParamsWithHTTPClient ¶
func NewFindTodosParamsWithHTTPClient(client *http.Client) *FindTodosParams
NewFindTodosParamsWithHTTPClient creates a new FindTodosParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindTodosParamsWithTimeout ¶
func NewFindTodosParamsWithTimeout(timeout time.Duration) *FindTodosParams
NewFindTodosParamsWithTimeout creates a new FindTodosParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindTodosParams) SetContext ¶
func (o *FindTodosParams) SetContext(ctx context.Context)
SetContext adds the context to the find todos params
func (*FindTodosParams) SetHTTPClient ¶
func (o *FindTodosParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find todos params
func (*FindTodosParams) SetLimit ¶
func (o *FindTodosParams) SetLimit(limit *int32)
SetLimit adds the limit to the find todos params
func (*FindTodosParams) SetSince ¶
func (o *FindTodosParams) SetSince(since *int64)
SetSince adds the since to the find todos params
func (*FindTodosParams) SetTimeout ¶
func (o *FindTodosParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find todos params
func (*FindTodosParams) WithContext ¶
func (o *FindTodosParams) WithContext(ctx context.Context) *FindTodosParams
WithContext adds the context to the find todos params
func (*FindTodosParams) WithHTTPClient ¶
func (o *FindTodosParams) WithHTTPClient(client *http.Client) *FindTodosParams
WithHTTPClient adds the HTTPClient to the find todos params
func (*FindTodosParams) WithLimit ¶
func (o *FindTodosParams) WithLimit(limit *int32) *FindTodosParams
WithLimit adds the limit to the find todos params
func (*FindTodosParams) WithSince ¶
func (o *FindTodosParams) WithSince(since *int64) *FindTodosParams
WithSince adds the since to the find todos params
func (*FindTodosParams) WithTimeout ¶
func (o *FindTodosParams) WithTimeout(timeout time.Duration) *FindTodosParams
WithTimeout adds the timeout to the find todos params
func (*FindTodosParams) WriteToRequest ¶
func (o *FindTodosParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindTodosReader ¶
type FindTodosReader struct {
// contains filtered or unexported fields
}
FindTodosReader is a Reader for the FindTodos structure.
func (*FindTodosReader) ReadResponse ¶
func (o *FindTodosReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateOneDefault ¶
UpdateOneDefault handles this case with default header values.
error
func NewUpdateOneDefault ¶
func NewUpdateOneDefault(code int) *UpdateOneDefault
NewUpdateOneDefault creates a UpdateOneDefault with default headers values
func (*UpdateOneDefault) Code ¶
func (o *UpdateOneDefault) Code() int
Code gets the status code for the update one default response
func (*UpdateOneDefault) Error ¶
func (o *UpdateOneDefault) Error() string
func (*UpdateOneDefault) GetPayload ¶
func (o *UpdateOneDefault) GetPayload() *models.Error
type UpdateOneOK ¶
UpdateOneOK handles this case with default header values.
OK
func NewUpdateOneOK ¶
func NewUpdateOneOK() *UpdateOneOK
NewUpdateOneOK creates a UpdateOneOK with default headers values
func (*UpdateOneOK) Error ¶
func (o *UpdateOneOK) Error() string
func (*UpdateOneOK) GetPayload ¶
func (o *UpdateOneOK) GetPayload() *models.Item
type UpdateOneParams ¶
type UpdateOneParams struct { /*Body*/ Body *models.Item /*ID*/ ID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateOneParams contains all the parameters to send to the API endpoint for the update one operation typically these are written to a http.Request
func NewUpdateOneParams ¶
func NewUpdateOneParams() *UpdateOneParams
NewUpdateOneParams creates a new UpdateOneParams object with the default values initialized.
func NewUpdateOneParamsWithContext ¶
func NewUpdateOneParamsWithContext(ctx context.Context) *UpdateOneParams
NewUpdateOneParamsWithContext creates a new UpdateOneParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateOneParamsWithHTTPClient ¶
func NewUpdateOneParamsWithHTTPClient(client *http.Client) *UpdateOneParams
NewUpdateOneParamsWithHTTPClient creates a new UpdateOneParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateOneParamsWithTimeout ¶
func NewUpdateOneParamsWithTimeout(timeout time.Duration) *UpdateOneParams
NewUpdateOneParamsWithTimeout creates a new UpdateOneParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateOneParams) SetBody ¶
func (o *UpdateOneParams) SetBody(body *models.Item)
SetBody adds the body to the update one params
func (*UpdateOneParams) SetContext ¶
func (o *UpdateOneParams) SetContext(ctx context.Context)
SetContext adds the context to the update one params
func (*UpdateOneParams) SetHTTPClient ¶
func (o *UpdateOneParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update one params
func (*UpdateOneParams) SetID ¶
func (o *UpdateOneParams) SetID(id int64)
SetID adds the id to the update one params
func (*UpdateOneParams) SetTimeout ¶
func (o *UpdateOneParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update one params
func (*UpdateOneParams) WithBody ¶
func (o *UpdateOneParams) WithBody(body *models.Item) *UpdateOneParams
WithBody adds the body to the update one params
func (*UpdateOneParams) WithContext ¶
func (o *UpdateOneParams) WithContext(ctx context.Context) *UpdateOneParams
WithContext adds the context to the update one params
func (*UpdateOneParams) WithHTTPClient ¶
func (o *UpdateOneParams) WithHTTPClient(client *http.Client) *UpdateOneParams
WithHTTPClient adds the HTTPClient to the update one params
func (*UpdateOneParams) WithID ¶
func (o *UpdateOneParams) WithID(id int64) *UpdateOneParams
WithID adds the id to the update one params
func (*UpdateOneParams) WithTimeout ¶
func (o *UpdateOneParams) WithTimeout(timeout time.Duration) *UpdateOneParams
WithTimeout adds the timeout to the update one params
func (*UpdateOneParams) WriteToRequest ¶
func (o *UpdateOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateOneReader ¶
type UpdateOneReader struct {
// contains filtered or unexported fields
}
UpdateOneReader is a Reader for the UpdateOne structure.
func (*UpdateOneReader) ReadResponse ¶
func (o *UpdateOneReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.