spoons

package
v0.0.0-...-3c1a35f Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: May 29, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type AddSpoonCreated

type AddSpoonCreated struct {
	Payload *models.Item
}

AddSpoonCreated handles this case with default header values.

Created

func NewAddSpoonCreated

func NewAddSpoonCreated() *AddSpoonCreated

NewAddSpoonCreated creates a AddSpoonCreated with default headers values

func (*AddSpoonCreated) Error

func (o *AddSpoonCreated) Error() string

type AddSpoonDefault

type AddSpoonDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

AddSpoonDefault handles this case with default header values.

error

func NewAddSpoonDefault

func NewAddSpoonDefault(code int) *AddSpoonDefault

NewAddSpoonDefault creates a AddSpoonDefault with default headers values

func (*AddSpoonDefault) Code

func (o *AddSpoonDefault) Code() int

Code gets the status code for the add spoon default response

func (*AddSpoonDefault) Error

func (o *AddSpoonDefault) Error() string

type AddSpoonNotFound

type AddSpoonNotFound struct {
	Payload *models.Error
}

AddSpoonNotFound handles this case with default header values.

resource not found

func NewAddSpoonNotFound

func NewAddSpoonNotFound() *AddSpoonNotFound

NewAddSpoonNotFound creates a AddSpoonNotFound with default headers values

func (*AddSpoonNotFound) Error

func (o *AddSpoonNotFound) Error() string

type AddSpoonParams

type AddSpoonParams struct {

	/*Body*/
	Body *models.Item

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

AddSpoonParams contains all the parameters to send to the API endpoint for the add spoon operation typically these are written to a http.Request

func NewAddSpoonParams

func NewAddSpoonParams() *AddSpoonParams

NewAddSpoonParams creates a new AddSpoonParams object with the default values initialized.

func NewAddSpoonParamsWithContext

func NewAddSpoonParamsWithContext(ctx context.Context) *AddSpoonParams

NewAddSpoonParamsWithContext creates a new AddSpoonParams object with the default values initialized, and the ability to set a context for a request

func NewAddSpoonParamsWithHTTPClient

func NewAddSpoonParamsWithHTTPClient(client *http.Client) *AddSpoonParams

NewAddSpoonParamsWithHTTPClient creates a new AddSpoonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewAddSpoonParamsWithTimeout

func NewAddSpoonParamsWithTimeout(timeout time.Duration) *AddSpoonParams

NewAddSpoonParamsWithTimeout creates a new AddSpoonParams object with the default values initialized, and the ability to set a timeout on a request

func (*AddSpoonParams) SetBody

func (o *AddSpoonParams) SetBody(body *models.Item)

SetBody adds the body to the add spoon params

func (*AddSpoonParams) SetContext

func (o *AddSpoonParams) SetContext(ctx context.Context)

SetContext adds the context to the add spoon params

func (*AddSpoonParams) SetHTTPClient

func (o *AddSpoonParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the add spoon params

func (*AddSpoonParams) SetTimeout

func (o *AddSpoonParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the add spoon params

func (*AddSpoonParams) WithBody

func (o *AddSpoonParams) WithBody(body *models.Item) *AddSpoonParams

WithBody adds the body to the add spoon params

func (*AddSpoonParams) WithContext

func (o *AddSpoonParams) WithContext(ctx context.Context) *AddSpoonParams

WithContext adds the context to the add spoon params

func (*AddSpoonParams) WithHTTPClient

func (o *AddSpoonParams) WithHTTPClient(client *http.Client) *AddSpoonParams

WithHTTPClient adds the HTTPClient to the add spoon params

func (*AddSpoonParams) WithTimeout

func (o *AddSpoonParams) WithTimeout(timeout time.Duration) *AddSpoonParams

WithTimeout adds the timeout to the add spoon params

func (*AddSpoonParams) WriteToRequest

func (o *AddSpoonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type AddSpoonReader

type AddSpoonReader struct {
	// contains filtered or unexported fields
}

AddSpoonReader is a Reader for the AddSpoon structure.

func (*AddSpoonReader) ReadResponse

func (o *AddSpoonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type AddSpoonUnauthorized

type AddSpoonUnauthorized struct {
	Payload *models.Error
}

AddSpoonUnauthorized handles this case with default header values.

unauthorized

func NewAddSpoonUnauthorized

func NewAddSpoonUnauthorized() *AddSpoonUnauthorized

NewAddSpoonUnauthorized creates a AddSpoonUnauthorized with default headers values

func (*AddSpoonUnauthorized) Error

func (o *AddSpoonUnauthorized) Error() string

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for spoons API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client

New creates a new spoons API client.

func (*Client) AddSpoon

func (a *Client) AddSpoon(params *AddSpoonParams, authInfo runtime.ClientAuthInfoWriter) (*AddSpoonCreated, error)

AddSpoon add spoon API

func (*Client) DestroySpoon

func (a *Client) DestroySpoon(params *DestroySpoonParams, authInfo runtime.ClientAuthInfoWriter) (*DestroySpoonNoContent, error)

DestroySpoon destroy spoon API

func (*Client) FindSpoons

func (a *Client) FindSpoons(params *FindSpoonsParams, authInfo runtime.ClientAuthInfoWriter) (*FindSpoonsOK, error)

FindSpoons find spoons API

func (*Client) GetSpoon

func (a *Client) GetSpoon(params *GetSpoonParams, authInfo runtime.ClientAuthInfoWriter) (*GetSpoonOK, error)

GetSpoon get spoon API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

func (*Client) UpdateSpoon

func (a *Client) UpdateSpoon(params *UpdateSpoonParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateSpoonOK, error)

UpdateSpoon update spoon API

type DestroySpoonDefault

type DestroySpoonDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

DestroySpoonDefault handles this case with default header values.

error

func NewDestroySpoonDefault

func NewDestroySpoonDefault(code int) *DestroySpoonDefault

NewDestroySpoonDefault creates a DestroySpoonDefault with default headers values

func (*DestroySpoonDefault) Code

func (o *DestroySpoonDefault) Code() int

Code gets the status code for the destroy spoon default response

func (*DestroySpoonDefault) Error

func (o *DestroySpoonDefault) Error() string

type DestroySpoonNoContent

type DestroySpoonNoContent struct {
}

DestroySpoonNoContent handles this case with default header values.

Deleted

func NewDestroySpoonNoContent

func NewDestroySpoonNoContent() *DestroySpoonNoContent

NewDestroySpoonNoContent creates a DestroySpoonNoContent with default headers values

func (*DestroySpoonNoContent) Error

func (o *DestroySpoonNoContent) Error() string

type DestroySpoonNotFound

type DestroySpoonNotFound struct {
	Payload *models.Error
}

DestroySpoonNotFound handles this case with default header values.

resource not found

func NewDestroySpoonNotFound

func NewDestroySpoonNotFound() *DestroySpoonNotFound

NewDestroySpoonNotFound creates a DestroySpoonNotFound with default headers values

func (*DestroySpoonNotFound) Error

func (o *DestroySpoonNotFound) Error() string

type DestroySpoonParams

type DestroySpoonParams struct {

	/*ID*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

DestroySpoonParams contains all the parameters to send to the API endpoint for the destroy spoon operation typically these are written to a http.Request

func NewDestroySpoonParams

func NewDestroySpoonParams() *DestroySpoonParams

NewDestroySpoonParams creates a new DestroySpoonParams object with the default values initialized.

func NewDestroySpoonParamsWithContext

func NewDestroySpoonParamsWithContext(ctx context.Context) *DestroySpoonParams

NewDestroySpoonParamsWithContext creates a new DestroySpoonParams object with the default values initialized, and the ability to set a context for a request

func NewDestroySpoonParamsWithHTTPClient

func NewDestroySpoonParamsWithHTTPClient(client *http.Client) *DestroySpoonParams

NewDestroySpoonParamsWithHTTPClient creates a new DestroySpoonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewDestroySpoonParamsWithTimeout

func NewDestroySpoonParamsWithTimeout(timeout time.Duration) *DestroySpoonParams

NewDestroySpoonParamsWithTimeout creates a new DestroySpoonParams object with the default values initialized, and the ability to set a timeout on a request

func (*DestroySpoonParams) SetContext

func (o *DestroySpoonParams) SetContext(ctx context.Context)

SetContext adds the context to the destroy spoon params

func (*DestroySpoonParams) SetHTTPClient

func (o *DestroySpoonParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the destroy spoon params

func (*DestroySpoonParams) SetID

func (o *DestroySpoonParams) SetID(id int64)

SetID adds the id to the destroy spoon params

func (*DestroySpoonParams) SetTimeout

func (o *DestroySpoonParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the destroy spoon params

func (*DestroySpoonParams) WithContext

WithContext adds the context to the destroy spoon params

func (*DestroySpoonParams) WithHTTPClient

func (o *DestroySpoonParams) WithHTTPClient(client *http.Client) *DestroySpoonParams

WithHTTPClient adds the HTTPClient to the destroy spoon params

func (*DestroySpoonParams) WithID

WithID adds the id to the destroy spoon params

func (*DestroySpoonParams) WithTimeout

func (o *DestroySpoonParams) WithTimeout(timeout time.Duration) *DestroySpoonParams

WithTimeout adds the timeout to the destroy spoon params

func (*DestroySpoonParams) WriteToRequest

func (o *DestroySpoonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type DestroySpoonReader

type DestroySpoonReader struct {
	// contains filtered or unexported fields
}

DestroySpoonReader is a Reader for the DestroySpoon structure.

func (*DestroySpoonReader) ReadResponse

func (o *DestroySpoonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type DestroySpoonUnauthorized

type DestroySpoonUnauthorized struct {
	Payload *models.Error
}

DestroySpoonUnauthorized handles this case with default header values.

unauthorized

func NewDestroySpoonUnauthorized

func NewDestroySpoonUnauthorized() *DestroySpoonUnauthorized

NewDestroySpoonUnauthorized creates a DestroySpoonUnauthorized with default headers values

func (*DestroySpoonUnauthorized) Error

func (o *DestroySpoonUnauthorized) Error() string

type FindSpoonsDefault

type FindSpoonsDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

FindSpoonsDefault handles this case with default header values.

generic error response

func NewFindSpoonsDefault

func NewFindSpoonsDefault(code int) *FindSpoonsDefault

NewFindSpoonsDefault creates a FindSpoonsDefault with default headers values

func (*FindSpoonsDefault) Code

func (o *FindSpoonsDefault) Code() int

Code gets the status code for the find spoons default response

func (*FindSpoonsDefault) Error

func (o *FindSpoonsDefault) Error() string

type FindSpoonsNotFound

type FindSpoonsNotFound struct {
	Payload *models.Error
}

FindSpoonsNotFound handles this case with default header values.

resource not found

func NewFindSpoonsNotFound

func NewFindSpoonsNotFound() *FindSpoonsNotFound

NewFindSpoonsNotFound creates a FindSpoonsNotFound with default headers values

func (*FindSpoonsNotFound) Error

func (o *FindSpoonsNotFound) Error() string

type FindSpoonsOK

type FindSpoonsOK struct {
	Payload []*models.Item
}

FindSpoonsOK handles this case with default header values.

list the spoon operations

func NewFindSpoonsOK

func NewFindSpoonsOK() *FindSpoonsOK

NewFindSpoonsOK creates a FindSpoonsOK with default headers values

func (*FindSpoonsOK) Error

func (o *FindSpoonsOK) Error() string

type FindSpoonsParams

type FindSpoonsParams struct {

	/*Limit*/
	Limit *int32
	/*Since*/
	Since *int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

FindSpoonsParams contains all the parameters to send to the API endpoint for the find spoons operation typically these are written to a http.Request

func NewFindSpoonsParams

func NewFindSpoonsParams() *FindSpoonsParams

NewFindSpoonsParams creates a new FindSpoonsParams object with the default values initialized.

func NewFindSpoonsParamsWithContext

func NewFindSpoonsParamsWithContext(ctx context.Context) *FindSpoonsParams

NewFindSpoonsParamsWithContext creates a new FindSpoonsParams object with the default values initialized, and the ability to set a context for a request

func NewFindSpoonsParamsWithHTTPClient

func NewFindSpoonsParamsWithHTTPClient(client *http.Client) *FindSpoonsParams

NewFindSpoonsParamsWithHTTPClient creates a new FindSpoonsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewFindSpoonsParamsWithTimeout

func NewFindSpoonsParamsWithTimeout(timeout time.Duration) *FindSpoonsParams

NewFindSpoonsParamsWithTimeout creates a new FindSpoonsParams object with the default values initialized, and the ability to set a timeout on a request

func (*FindSpoonsParams) SetContext

func (o *FindSpoonsParams) SetContext(ctx context.Context)

SetContext adds the context to the find spoons params

func (*FindSpoonsParams) SetHTTPClient

func (o *FindSpoonsParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the find spoons params

func (*FindSpoonsParams) SetLimit

func (o *FindSpoonsParams) SetLimit(limit *int32)

SetLimit adds the limit to the find spoons params

func (*FindSpoonsParams) SetSince

func (o *FindSpoonsParams) SetSince(since *int64)

SetSince adds the since to the find spoons params

func (*FindSpoonsParams) SetTimeout

func (o *FindSpoonsParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the find spoons params

func (*FindSpoonsParams) WithContext

func (o *FindSpoonsParams) WithContext(ctx context.Context) *FindSpoonsParams

WithContext adds the context to the find spoons params

func (*FindSpoonsParams) WithHTTPClient

func (o *FindSpoonsParams) WithHTTPClient(client *http.Client) *FindSpoonsParams

WithHTTPClient adds the HTTPClient to the find spoons params

func (*FindSpoonsParams) WithLimit

func (o *FindSpoonsParams) WithLimit(limit *int32) *FindSpoonsParams

WithLimit adds the limit to the find spoons params

func (*FindSpoonsParams) WithSince

func (o *FindSpoonsParams) WithSince(since *int64) *FindSpoonsParams

WithSince adds the since to the find spoons params

func (*FindSpoonsParams) WithTimeout

func (o *FindSpoonsParams) WithTimeout(timeout time.Duration) *FindSpoonsParams

WithTimeout adds the timeout to the find spoons params

func (*FindSpoonsParams) WriteToRequest

func (o *FindSpoonsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type FindSpoonsReader

type FindSpoonsReader struct {
	// contains filtered or unexported fields
}

FindSpoonsReader is a Reader for the FindSpoons structure.

func (*FindSpoonsReader) ReadResponse

func (o *FindSpoonsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type FindSpoonsUnauthorized

type FindSpoonsUnauthorized struct {
	Payload *models.Error
}

FindSpoonsUnauthorized handles this case with default header values.

unauthorized

func NewFindSpoonsUnauthorized

func NewFindSpoonsUnauthorized() *FindSpoonsUnauthorized

NewFindSpoonsUnauthorized creates a FindSpoonsUnauthorized with default headers values

func (*FindSpoonsUnauthorized) Error

func (o *FindSpoonsUnauthorized) Error() string

type GetSpoonDefault

type GetSpoonDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

GetSpoonDefault handles this case with default header values.

generic error response

func NewGetSpoonDefault

func NewGetSpoonDefault(code int) *GetSpoonDefault

NewGetSpoonDefault creates a GetSpoonDefault with default headers values

func (*GetSpoonDefault) Code

func (o *GetSpoonDefault) Code() int

Code gets the status code for the get spoon default response

func (*GetSpoonDefault) Error

func (o *GetSpoonDefault) Error() string

type GetSpoonNotFound

type GetSpoonNotFound struct {
	Payload *models.Error
}

GetSpoonNotFound handles this case with default header values.

resource not found

func NewGetSpoonNotFound

func NewGetSpoonNotFound() *GetSpoonNotFound

NewGetSpoonNotFound creates a GetSpoonNotFound with default headers values

func (*GetSpoonNotFound) Error

func (o *GetSpoonNotFound) Error() string

type GetSpoonOK

type GetSpoonOK struct {
	Payload *models.Item
}

GetSpoonOK handles this case with default header values.

get a spoon operation

func NewGetSpoonOK

func NewGetSpoonOK() *GetSpoonOK

NewGetSpoonOK creates a GetSpoonOK with default headers values

func (*GetSpoonOK) Error

func (o *GetSpoonOK) Error() string

type GetSpoonParams

type GetSpoonParams struct {

	/*ID*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

GetSpoonParams contains all the parameters to send to the API endpoint for the get spoon operation typically these are written to a http.Request

func NewGetSpoonParams

func NewGetSpoonParams() *GetSpoonParams

NewGetSpoonParams creates a new GetSpoonParams object with the default values initialized.

func NewGetSpoonParamsWithContext

func NewGetSpoonParamsWithContext(ctx context.Context) *GetSpoonParams

NewGetSpoonParamsWithContext creates a new GetSpoonParams object with the default values initialized, and the ability to set a context for a request

func NewGetSpoonParamsWithHTTPClient

func NewGetSpoonParamsWithHTTPClient(client *http.Client) *GetSpoonParams

NewGetSpoonParamsWithHTTPClient creates a new GetSpoonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewGetSpoonParamsWithTimeout

func NewGetSpoonParamsWithTimeout(timeout time.Duration) *GetSpoonParams

NewGetSpoonParamsWithTimeout creates a new GetSpoonParams object with the default values initialized, and the ability to set a timeout on a request

func (*GetSpoonParams) SetContext

func (o *GetSpoonParams) SetContext(ctx context.Context)

SetContext adds the context to the get spoon params

func (*GetSpoonParams) SetHTTPClient

func (o *GetSpoonParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the get spoon params

func (*GetSpoonParams) SetID

func (o *GetSpoonParams) SetID(id int64)

SetID adds the id to the get spoon params

func (*GetSpoonParams) SetTimeout

func (o *GetSpoonParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the get spoon params

func (*GetSpoonParams) WithContext

func (o *GetSpoonParams) WithContext(ctx context.Context) *GetSpoonParams

WithContext adds the context to the get spoon params

func (*GetSpoonParams) WithHTTPClient

func (o *GetSpoonParams) WithHTTPClient(client *http.Client) *GetSpoonParams

WithHTTPClient adds the HTTPClient to the get spoon params

func (*GetSpoonParams) WithID

func (o *GetSpoonParams) WithID(id int64) *GetSpoonParams

WithID adds the id to the get spoon params

func (*GetSpoonParams) WithTimeout

func (o *GetSpoonParams) WithTimeout(timeout time.Duration) *GetSpoonParams

WithTimeout adds the timeout to the get spoon params

func (*GetSpoonParams) WriteToRequest

func (o *GetSpoonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type GetSpoonReader

type GetSpoonReader struct {
	// contains filtered or unexported fields
}

GetSpoonReader is a Reader for the GetSpoon structure.

func (*GetSpoonReader) ReadResponse

func (o *GetSpoonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type GetSpoonUnauthorized

type GetSpoonUnauthorized struct {
	Payload *models.Error
}

GetSpoonUnauthorized handles this case with default header values.

unauthorized

func NewGetSpoonUnauthorized

func NewGetSpoonUnauthorized() *GetSpoonUnauthorized

NewGetSpoonUnauthorized creates a GetSpoonUnauthorized with default headers values

func (*GetSpoonUnauthorized) Error

func (o *GetSpoonUnauthorized) Error() string

type UpdateSpoonDefault

type UpdateSpoonDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}

UpdateSpoonDefault handles this case with default header values.

error

func NewUpdateSpoonDefault

func NewUpdateSpoonDefault(code int) *UpdateSpoonDefault

NewUpdateSpoonDefault creates a UpdateSpoonDefault with default headers values

func (*UpdateSpoonDefault) Code

func (o *UpdateSpoonDefault) Code() int

Code gets the status code for the update spoon default response

func (*UpdateSpoonDefault) Error

func (o *UpdateSpoonDefault) Error() string

type UpdateSpoonNotFound

type UpdateSpoonNotFound struct {
	Payload *models.Error
}

UpdateSpoonNotFound handles this case with default header values.

resource not found

func NewUpdateSpoonNotFound

func NewUpdateSpoonNotFound() *UpdateSpoonNotFound

NewUpdateSpoonNotFound creates a UpdateSpoonNotFound with default headers values

func (*UpdateSpoonNotFound) Error

func (o *UpdateSpoonNotFound) Error() string

type UpdateSpoonOK

type UpdateSpoonOK struct {
	Payload *models.Item
}

UpdateSpoonOK handles this case with default header values.

OK

func NewUpdateSpoonOK

func NewUpdateSpoonOK() *UpdateSpoonOK

NewUpdateSpoonOK creates a UpdateSpoonOK with default headers values

func (*UpdateSpoonOK) Error

func (o *UpdateSpoonOK) Error() string

type UpdateSpoonParams

type UpdateSpoonParams struct {

	/*Body*/
	Body *models.Item
	/*ID*/
	ID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

UpdateSpoonParams contains all the parameters to send to the API endpoint for the update spoon operation typically these are written to a http.Request

func NewUpdateSpoonParams

func NewUpdateSpoonParams() *UpdateSpoonParams

NewUpdateSpoonParams creates a new UpdateSpoonParams object with the default values initialized.

func NewUpdateSpoonParamsWithContext

func NewUpdateSpoonParamsWithContext(ctx context.Context) *UpdateSpoonParams

NewUpdateSpoonParamsWithContext creates a new UpdateSpoonParams object with the default values initialized, and the ability to set a context for a request

func NewUpdateSpoonParamsWithHTTPClient

func NewUpdateSpoonParamsWithHTTPClient(client *http.Client) *UpdateSpoonParams

NewUpdateSpoonParamsWithHTTPClient creates a new UpdateSpoonParams object with the default values initialized, and the ability to set a custom HTTPClient for a request

func NewUpdateSpoonParamsWithTimeout

func NewUpdateSpoonParamsWithTimeout(timeout time.Duration) *UpdateSpoonParams

NewUpdateSpoonParamsWithTimeout creates a new UpdateSpoonParams object with the default values initialized, and the ability to set a timeout on a request

func (*UpdateSpoonParams) SetBody

func (o *UpdateSpoonParams) SetBody(body *models.Item)

SetBody adds the body to the update spoon params

func (*UpdateSpoonParams) SetContext

func (o *UpdateSpoonParams) SetContext(ctx context.Context)

SetContext adds the context to the update spoon params

func (*UpdateSpoonParams) SetHTTPClient

func (o *UpdateSpoonParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the update spoon params

func (*UpdateSpoonParams) SetID

func (o *UpdateSpoonParams) SetID(id int64)

SetID adds the id to the update spoon params

func (*UpdateSpoonParams) SetTimeout

func (o *UpdateSpoonParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the update spoon params

func (*UpdateSpoonParams) WithBody

func (o *UpdateSpoonParams) WithBody(body *models.Item) *UpdateSpoonParams

WithBody adds the body to the update spoon params

func (*UpdateSpoonParams) WithContext

func (o *UpdateSpoonParams) WithContext(ctx context.Context) *UpdateSpoonParams

WithContext adds the context to the update spoon params

func (*UpdateSpoonParams) WithHTTPClient

func (o *UpdateSpoonParams) WithHTTPClient(client *http.Client) *UpdateSpoonParams

WithHTTPClient adds the HTTPClient to the update spoon params

func (*UpdateSpoonParams) WithID

func (o *UpdateSpoonParams) WithID(id int64) *UpdateSpoonParams

WithID adds the id to the update spoon params

func (*UpdateSpoonParams) WithTimeout

func (o *UpdateSpoonParams) WithTimeout(timeout time.Duration) *UpdateSpoonParams

WithTimeout adds the timeout to the update spoon params

func (*UpdateSpoonParams) WriteToRequest

func (o *UpdateSpoonParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type UpdateSpoonReader

type UpdateSpoonReader struct {
	// contains filtered or unexported fields
}

UpdateSpoonReader is a Reader for the UpdateSpoon structure.

func (*UpdateSpoonReader) ReadResponse

func (o *UpdateSpoonReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type UpdateSpoonUnauthorized

type UpdateSpoonUnauthorized struct {
	Payload *models.Error
}

UpdateSpoonUnauthorized handles this case with default header values.

unauthorized

func NewUpdateSpoonUnauthorized

func NewUpdateSpoonUnauthorized() *UpdateSpoonUnauthorized

NewUpdateSpoonUnauthorized creates a UpdateSpoonUnauthorized with default headers values

func (*UpdateSpoonUnauthorized) Error

func (o *UpdateSpoonUnauthorized) Error() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL