Documentation ¶
Index ¶
- type AddOneCreated
- func (o *AddOneCreated) Code() int
- func (o *AddOneCreated) Error() string
- func (o *AddOneCreated) GetPayload() *models.Item
- func (o *AddOneCreated) IsClientError() bool
- func (o *AddOneCreated) IsCode(code int) bool
- func (o *AddOneCreated) IsRedirect() bool
- func (o *AddOneCreated) IsServerError() bool
- func (o *AddOneCreated) IsSuccess() bool
- func (o *AddOneCreated) String() string
- type AddOneDefault
- func (o *AddOneDefault) Code() int
- func (o *AddOneDefault) Error() string
- func (o *AddOneDefault) GetPayload() *models.Error
- func (o *AddOneDefault) IsClientError() bool
- func (o *AddOneDefault) IsCode(code int) bool
- func (o *AddOneDefault) IsRedirect() bool
- func (o *AddOneDefault) IsServerError() bool
- func (o *AddOneDefault) IsSuccess() bool
- func (o *AddOneDefault) String() string
- type AddOneParams
- func (o *AddOneParams) SetBody(body *models.Item)
- func (o *AddOneParams) SetContext(ctx context.Context)
- func (o *AddOneParams) SetDefaults()
- 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) WithDefaults() *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, authInfo runtime.ClientAuthInfoWriter, ...) (*AddOneCreated, error)
- func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, ...) (*DestroyOneNoContent, error)
- func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, ...) (*FindOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, ...) (*UpdateOneOK, error)
- type ClientOption
- type ClientService
- type DestroyOneDefault
- func (o *DestroyOneDefault) Code() int
- func (o *DestroyOneDefault) Error() string
- func (o *DestroyOneDefault) GetPayload() *models.Error
- func (o *DestroyOneDefault) IsClientError() bool
- func (o *DestroyOneDefault) IsCode(code int) bool
- func (o *DestroyOneDefault) IsRedirect() bool
- func (o *DestroyOneDefault) IsServerError() bool
- func (o *DestroyOneDefault) IsSuccess() bool
- func (o *DestroyOneDefault) String() string
- type DestroyOneNoContent
- func (o *DestroyOneNoContent) Code() int
- func (o *DestroyOneNoContent) Error() string
- func (o *DestroyOneNoContent) IsClientError() bool
- func (o *DestroyOneNoContent) IsCode(code int) bool
- func (o *DestroyOneNoContent) IsRedirect() bool
- func (o *DestroyOneNoContent) IsServerError() bool
- func (o *DestroyOneNoContent) IsSuccess() bool
- func (o *DestroyOneNoContent) String() string
- type DestroyOneParams
- func (o *DestroyOneParams) SetContext(ctx context.Context)
- func (o *DestroyOneParams) SetDefaults()
- func (o *DestroyOneParams) SetHTTPClient(client *http.Client)
- func (o *DestroyOneParams) SetID(id string)
- func (o *DestroyOneParams) SetTimeout(timeout time.Duration)
- func (o *DestroyOneParams) WithContext(ctx context.Context) *DestroyOneParams
- func (o *DestroyOneParams) WithDefaults() *DestroyOneParams
- func (o *DestroyOneParams) WithHTTPClient(client *http.Client) *DestroyOneParams
- func (o *DestroyOneParams) WithID(id string) *DestroyOneParams
- func (o *DestroyOneParams) WithTimeout(timeout time.Duration) *DestroyOneParams
- func (o *DestroyOneParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DestroyOneReader
- type FindDefault
- func (o *FindDefault) Code() int
- func (o *FindDefault) Error() string
- func (o *FindDefault) GetPayload() *models.Error
- func (o *FindDefault) IsClientError() bool
- func (o *FindDefault) IsCode(code int) bool
- func (o *FindDefault) IsRedirect() bool
- func (o *FindDefault) IsServerError() bool
- func (o *FindDefault) IsSuccess() bool
- func (o *FindDefault) String() string
- type FindOK
- func (o *FindOK) Code() int
- func (o *FindOK) Error() string
- func (o *FindOK) GetPayload() []*models.Item
- func (o *FindOK) IsClientError() bool
- func (o *FindOK) IsCode(code int) bool
- func (o *FindOK) IsRedirect() bool
- func (o *FindOK) IsServerError() bool
- func (o *FindOK) IsSuccess() bool
- func (o *FindOK) String() string
- type FindParams
- func (o *FindParams) SetContext(ctx context.Context)
- func (o *FindParams) SetDefaults()
- func (o *FindParams) SetHTTPClient(client *http.Client)
- func (o *FindParams) SetLimit(limit int32)
- func (o *FindParams) SetTags(tags []int32)
- func (o *FindParams) SetTimeout(timeout time.Duration)
- func (o *FindParams) SetXRateLimit(xRateLimit int32)
- func (o *FindParams) WithContext(ctx context.Context) *FindParams
- func (o *FindParams) WithDefaults() *FindParams
- func (o *FindParams) WithHTTPClient(client *http.Client) *FindParams
- func (o *FindParams) WithLimit(limit int32) *FindParams
- func (o *FindParams) WithTags(tags []int32) *FindParams
- func (o *FindParams) WithTimeout(timeout time.Duration) *FindParams
- func (o *FindParams) WithXRateLimit(xRateLimit int32) *FindParams
- func (o *FindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindReader
- type UpdateOneDefault
- func (o *UpdateOneDefault) Code() int
- func (o *UpdateOneDefault) Error() string
- func (o *UpdateOneDefault) GetPayload() *models.Error
- func (o *UpdateOneDefault) IsClientError() bool
- func (o *UpdateOneDefault) IsCode(code int) bool
- func (o *UpdateOneDefault) IsRedirect() bool
- func (o *UpdateOneDefault) IsServerError() bool
- func (o *UpdateOneDefault) IsSuccess() bool
- func (o *UpdateOneDefault) String() string
- type UpdateOneOK
- func (o *UpdateOneOK) Code() int
- func (o *UpdateOneOK) Error() string
- func (o *UpdateOneOK) GetPayload() *models.Item
- func (o *UpdateOneOK) IsClientError() bool
- func (o *UpdateOneOK) IsCode(code int) bool
- func (o *UpdateOneOK) IsRedirect() bool
- func (o *UpdateOneOK) IsServerError() bool
- func (o *UpdateOneOK) IsSuccess() bool
- func (o *UpdateOneOK) String() string
- type UpdateOneParams
- func (o *UpdateOneParams) SetBody(body *models.Item)
- func (o *UpdateOneParams) SetContext(ctx context.Context)
- func (o *UpdateOneParams) SetDefaults()
- func (o *UpdateOneParams) SetHTTPClient(client *http.Client)
- func (o *UpdateOneParams) SetID(id string)
- 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) WithDefaults() *UpdateOneParams
- func (o *UpdateOneParams) WithHTTPClient(client *http.Client) *UpdateOneParams
- func (o *UpdateOneParams) WithID(id string) *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 describes a response with status code 201, with default header values.
Created
func NewAddOneCreated ¶
func NewAddOneCreated() *AddOneCreated
NewAddOneCreated creates a AddOneCreated with default headers values
func (*AddOneCreated) Code ¶
func (o *AddOneCreated) Code() int
Code gets the status code for the add one created response
func (*AddOneCreated) Error ¶
func (o *AddOneCreated) Error() string
func (*AddOneCreated) GetPayload ¶
func (o *AddOneCreated) GetPayload() *models.Item
func (*AddOneCreated) IsClientError ¶
func (o *AddOneCreated) IsClientError() bool
IsClientError returns true when this add one created response has a 4xx status code
func (*AddOneCreated) IsCode ¶
func (o *AddOneCreated) IsCode(code int) bool
IsCode returns true when this add one created response a status code equal to that given
func (*AddOneCreated) IsRedirect ¶
func (o *AddOneCreated) IsRedirect() bool
IsRedirect returns true when this add one created response has a 3xx status code
func (*AddOneCreated) IsServerError ¶
func (o *AddOneCreated) IsServerError() bool
IsServerError returns true when this add one created response has a 5xx status code
func (*AddOneCreated) IsSuccess ¶
func (o *AddOneCreated) IsSuccess() bool
IsSuccess returns true when this add one created response has a 2xx status code
func (*AddOneCreated) String ¶
func (o *AddOneCreated) String() string
type AddOneDefault ¶
AddOneDefault describes a response with status code -1, 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
func (*AddOneDefault) IsClientError ¶
func (o *AddOneDefault) IsClientError() bool
IsClientError returns true when this add one default response has a 4xx status code
func (*AddOneDefault) IsCode ¶
func (o *AddOneDefault) IsCode(code int) bool
IsCode returns true when this add one default response a status code equal to that given
func (*AddOneDefault) IsRedirect ¶
func (o *AddOneDefault) IsRedirect() bool
IsRedirect returns true when this add one default response has a 3xx status code
func (*AddOneDefault) IsServerError ¶
func (o *AddOneDefault) IsServerError() bool
IsServerError returns true when this add one default response has a 5xx status code
func (*AddOneDefault) IsSuccess ¶
func (o *AddOneDefault) IsSuccess() bool
IsSuccess returns true when this add one default response has a 2xx status code
func (*AddOneDefault) String ¶
func (o *AddOneDefault) String() string
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 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 NewAddOneParamsWithContext ¶
func NewAddOneParamsWithContext(ctx context.Context) *AddOneParams
NewAddOneParamsWithContext creates a new AddOneParams object with 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 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 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) SetDefaults ¶
func (o *AddOneParams) SetDefaults()
SetDefaults hydrates default values in the add one params (not the query body).
All values with no default are reset to their zero value.
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) WithDefaults ¶
func (o *AddOneParams) WithDefaults() *AddOneParams
WithDefaults hydrates default values in the add one params (not the query body).
All values with no default are reset to their zero value.
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 (*Client) AddOne ¶
func (a *Client) AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error)
AddOne add one API
func (*Client) DestroyOne ¶
func (a *Client) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error)
DestroyOne destroy one API
func (*Client) Find ¶
func (a *Client) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error)
Find find 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, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, error)
UpdateOne update one API
type ClientOption ¶
type ClientOption func(*runtime.ClientOperation)
ClientOption is the option for Client methods
type ClientService ¶
type ClientService interface { AddOne(params *AddOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*AddOneCreated, error) DestroyOne(params *DestroyOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DestroyOneNoContent, error) Find(params *FindParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*FindOK, error) UpdateOne(params *UpdateOneParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*UpdateOneOK, 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 todos API client.
func NewClientWithBasicAuth ¶
func NewClientWithBasicAuth(host, basePath, scheme, user, password string) ClientService
New creates a new todos API client with basic auth credentials. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - user: user for basic authentication header. - password: password for basic authentication header.
func NewClientWithBearerToken ¶
func NewClientWithBearerToken(host, basePath, scheme, bearerToken string) ClientService
New creates a new todos API client with a bearer token for authentication. It takes the following parameters: - host: http host (github.com). - basePath: any base path for the API client ("/v1", "/v3"). - scheme: http scheme ("http", "https"). - bearerToken: bearer token for Bearer authentication header.
type DestroyOneDefault ¶
DestroyOneDefault describes a response with status code -1, 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
func (*DestroyOneDefault) IsClientError ¶
func (o *DestroyOneDefault) IsClientError() bool
IsClientError returns true when this destroy one default response has a 4xx status code
func (*DestroyOneDefault) IsCode ¶
func (o *DestroyOneDefault) IsCode(code int) bool
IsCode returns true when this destroy one default response a status code equal to that given
func (*DestroyOneDefault) IsRedirect ¶
func (o *DestroyOneDefault) IsRedirect() bool
IsRedirect returns true when this destroy one default response has a 3xx status code
func (*DestroyOneDefault) IsServerError ¶
func (o *DestroyOneDefault) IsServerError() bool
IsServerError returns true when this destroy one default response has a 5xx status code
func (*DestroyOneDefault) IsSuccess ¶
func (o *DestroyOneDefault) IsSuccess() bool
IsSuccess returns true when this destroy one default response has a 2xx status code
func (*DestroyOneDefault) String ¶
func (o *DestroyOneDefault) String() string
type DestroyOneNoContent ¶
type DestroyOneNoContent struct { }
DestroyOneNoContent describes a response with status code 204, with default header values.
Deleted
func NewDestroyOneNoContent ¶
func NewDestroyOneNoContent() *DestroyOneNoContent
NewDestroyOneNoContent creates a DestroyOneNoContent with default headers values
func (*DestroyOneNoContent) Code ¶
func (o *DestroyOneNoContent) Code() int
Code gets the status code for the destroy one no content response
func (*DestroyOneNoContent) Error ¶
func (o *DestroyOneNoContent) Error() string
func (*DestroyOneNoContent) IsClientError ¶
func (o *DestroyOneNoContent) IsClientError() bool
IsClientError returns true when this destroy one no content response has a 4xx status code
func (*DestroyOneNoContent) IsCode ¶
func (o *DestroyOneNoContent) IsCode(code int) bool
IsCode returns true when this destroy one no content response a status code equal to that given
func (*DestroyOneNoContent) IsRedirect ¶
func (o *DestroyOneNoContent) IsRedirect() bool
IsRedirect returns true when this destroy one no content response has a 3xx status code
func (*DestroyOneNoContent) IsServerError ¶
func (o *DestroyOneNoContent) IsServerError() bool
IsServerError returns true when this destroy one no content response has a 5xx status code
func (*DestroyOneNoContent) IsSuccess ¶
func (o *DestroyOneNoContent) IsSuccess() bool
IsSuccess returns true when this destroy one no content response has a 2xx status code
func (*DestroyOneNoContent) String ¶
func (o *DestroyOneNoContent) String() string
type DestroyOneParams ¶
type DestroyOneParams struct { // ID. ID string 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 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 NewDestroyOneParamsWithContext ¶
func NewDestroyOneParamsWithContext(ctx context.Context) *DestroyOneParams
NewDestroyOneParamsWithContext creates a new DestroyOneParams object with 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 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 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) SetDefaults ¶
func (o *DestroyOneParams) SetDefaults()
SetDefaults hydrates default values in the destroy one params (not the query body).
All values with no default are reset to their zero value.
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 string)
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) WithDefaults ¶
func (o *DestroyOneParams) WithDefaults() *DestroyOneParams
WithDefaults hydrates default values in the destroy one params (not the query body).
All values with no default are reset to their zero value.
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 string) *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 FindDefault ¶
FindDefault describes a response with status code -1, with default header values.
error
func NewFindDefault ¶
func NewFindDefault(code int) *FindDefault
NewFindDefault creates a FindDefault with default headers values
func (*FindDefault) Code ¶
func (o *FindDefault) Code() int
Code gets the status code for the find default response
func (*FindDefault) Error ¶
func (o *FindDefault) Error() string
func (*FindDefault) GetPayload ¶
func (o *FindDefault) GetPayload() *models.Error
func (*FindDefault) IsClientError ¶
func (o *FindDefault) IsClientError() bool
IsClientError returns true when this find default response has a 4xx status code
func (*FindDefault) IsCode ¶
func (o *FindDefault) IsCode(code int) bool
IsCode returns true when this find default response a status code equal to that given
func (*FindDefault) IsRedirect ¶
func (o *FindDefault) IsRedirect() bool
IsRedirect returns true when this find default response has a 3xx status code
func (*FindDefault) IsServerError ¶
func (o *FindDefault) IsServerError() bool
IsServerError returns true when this find default response has a 5xx status code
func (*FindDefault) IsSuccess ¶
func (o *FindDefault) IsSuccess() bool
IsSuccess returns true when this find default response has a 2xx status code
func (*FindDefault) String ¶
func (o *FindDefault) String() string
type FindOK ¶
FindOK describes a response with status code 200, with default header values.
OK
func (*FindOK) GetPayload ¶
func (*FindOK) IsClientError ¶
IsClientError returns true when this find o k response has a 4xx status code
func (*FindOK) IsCode ¶
IsCode returns true when this find o k response a status code equal to that given
func (*FindOK) IsRedirect ¶
IsRedirect returns true when this find o k response has a 3xx status code
func (*FindOK) IsServerError ¶
IsServerError returns true when this find o k response has a 5xx status code
type FindParams ¶
type FindParams struct { // XRateLimit. // // Format: int32 XRateLimit int32 // Limit. // // Format: int32 Limit int32 // Tags. Tags []int32 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindParams contains all the parameters to send to the API endpoint
for the find operation. Typically these are written to a http.Request.
func NewFindParams ¶
func NewFindParams() *FindParams
NewFindParams creates a new FindParams 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 NewFindParamsWithContext ¶
func NewFindParamsWithContext(ctx context.Context) *FindParams
NewFindParamsWithContext creates a new FindParams object with the ability to set a context for a request.
func NewFindParamsWithHTTPClient ¶
func NewFindParamsWithHTTPClient(client *http.Client) *FindParams
NewFindParamsWithHTTPClient creates a new FindParams object with the ability to set a custom HTTPClient for a request.
func NewFindParamsWithTimeout ¶
func NewFindParamsWithTimeout(timeout time.Duration) *FindParams
NewFindParamsWithTimeout creates a new FindParams object with the ability to set a timeout on a request.
func (*FindParams) SetContext ¶
func (o *FindParams) SetContext(ctx context.Context)
SetContext adds the context to the find params
func (*FindParams) SetDefaults ¶
func (o *FindParams) SetDefaults()
SetDefaults hydrates default values in the find params (not the query body).
All values with no default are reset to their zero value.
func (*FindParams) SetHTTPClient ¶
func (o *FindParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find params
func (*FindParams) SetLimit ¶
func (o *FindParams) SetLimit(limit int32)
SetLimit adds the limit to the find params
func (*FindParams) SetTags ¶
func (o *FindParams) SetTags(tags []int32)
SetTags adds the tags to the find params
func (*FindParams) SetTimeout ¶
func (o *FindParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find params
func (*FindParams) SetXRateLimit ¶
func (o *FindParams) SetXRateLimit(xRateLimit int32)
SetXRateLimit adds the xRateLimit to the find params
func (*FindParams) WithContext ¶
func (o *FindParams) WithContext(ctx context.Context) *FindParams
WithContext adds the context to the find params
func (*FindParams) WithDefaults ¶
func (o *FindParams) WithDefaults() *FindParams
WithDefaults hydrates default values in the find params (not the query body).
All values with no default are reset to their zero value.
func (*FindParams) WithHTTPClient ¶
func (o *FindParams) WithHTTPClient(client *http.Client) *FindParams
WithHTTPClient adds the HTTPClient to the find params
func (*FindParams) WithLimit ¶
func (o *FindParams) WithLimit(limit int32) *FindParams
WithLimit adds the limit to the find params
func (*FindParams) WithTags ¶
func (o *FindParams) WithTags(tags []int32) *FindParams
WithTags adds the tags to the find params
func (*FindParams) WithTimeout ¶
func (o *FindParams) WithTimeout(timeout time.Duration) *FindParams
WithTimeout adds the timeout to the find params
func (*FindParams) WithXRateLimit ¶
func (o *FindParams) WithXRateLimit(xRateLimit int32) *FindParams
WithXRateLimit adds the xRateLimit to the find params
func (*FindParams) WriteToRequest ¶
func (o *FindParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindReader ¶
type FindReader struct {
// contains filtered or unexported fields
}
FindReader is a Reader for the Find structure.
func (*FindReader) ReadResponse ¶
func (o *FindReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateOneDefault ¶
UpdateOneDefault describes a response with status code -1, 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
func (*UpdateOneDefault) IsClientError ¶
func (o *UpdateOneDefault) IsClientError() bool
IsClientError returns true when this update one default response has a 4xx status code
func (*UpdateOneDefault) IsCode ¶
func (o *UpdateOneDefault) IsCode(code int) bool
IsCode returns true when this update one default response a status code equal to that given
func (*UpdateOneDefault) IsRedirect ¶
func (o *UpdateOneDefault) IsRedirect() bool
IsRedirect returns true when this update one default response has a 3xx status code
func (*UpdateOneDefault) IsServerError ¶
func (o *UpdateOneDefault) IsServerError() bool
IsServerError returns true when this update one default response has a 5xx status code
func (*UpdateOneDefault) IsSuccess ¶
func (o *UpdateOneDefault) IsSuccess() bool
IsSuccess returns true when this update one default response has a 2xx status code
func (*UpdateOneDefault) String ¶
func (o *UpdateOneDefault) String() string
type UpdateOneOK ¶
UpdateOneOK describes a response with status code 200, with default header values.
OK
func NewUpdateOneOK ¶
func NewUpdateOneOK() *UpdateOneOK
NewUpdateOneOK creates a UpdateOneOK with default headers values
func (*UpdateOneOK) Code ¶
func (o *UpdateOneOK) Code() int
Code gets the status code for the update one o k response
func (*UpdateOneOK) Error ¶
func (o *UpdateOneOK) Error() string
func (*UpdateOneOK) GetPayload ¶
func (o *UpdateOneOK) GetPayload() *models.Item
func (*UpdateOneOK) IsClientError ¶
func (o *UpdateOneOK) IsClientError() bool
IsClientError returns true when this update one o k response has a 4xx status code
func (*UpdateOneOK) IsCode ¶
func (o *UpdateOneOK) IsCode(code int) bool
IsCode returns true when this update one o k response a status code equal to that given
func (*UpdateOneOK) IsRedirect ¶
func (o *UpdateOneOK) IsRedirect() bool
IsRedirect returns true when this update one o k response has a 3xx status code
func (*UpdateOneOK) IsServerError ¶
func (o *UpdateOneOK) IsServerError() bool
IsServerError returns true when this update one o k response has a 5xx status code
func (*UpdateOneOK) IsSuccess ¶
func (o *UpdateOneOK) IsSuccess() bool
IsSuccess returns true when this update one o k response has a 2xx status code
func (*UpdateOneOK) String ¶
func (o *UpdateOneOK) String() string
type UpdateOneParams ¶
type UpdateOneParams struct { // Body. Body *models.Item // ID. ID string 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 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 NewUpdateOneParamsWithContext ¶
func NewUpdateOneParamsWithContext(ctx context.Context) *UpdateOneParams
NewUpdateOneParamsWithContext creates a new UpdateOneParams object with 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 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 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) SetDefaults ¶
func (o *UpdateOneParams) SetDefaults()
SetDefaults hydrates default values in the update one params (not the query body).
All values with no default are reset to their zero value.
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 string)
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) WithDefaults ¶
func (o *UpdateOneParams) WithDefaults() *UpdateOneParams
WithDefaults hydrates default values in the update one params (not the query body).
All values with no default are reset to their zero value.
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 string) *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.