Help us shape the future of Go! Take the 2026 Go Developer Survey

pet

package
v1.0.14 Latest Latest
Warning

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

Go to latest
Published: Jun 11, 2018 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	// PetCreate adds a new pet to the store
	PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error)
	// PetDelete deletes a pet
	PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error)
	// PetGet gets pet by it s ID
	PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error)
	// PetList lists pets
	PetList(ctx context.Context, params *PetListParams) (*PetListOK, error)
	// PetUpdate updates an existing pet
	PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error)
}

API is the interface of the pet client

type Client

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

Client for pet API

func New

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

New creates a new pet API client.

func (*Client) PetCreate

func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error)

PetCreate adds a new pet to the store

func (*Client) PetDelete

func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error)

PetDelete deletes a pet

func (*Client) PetGet

func (a *Client) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error)

PetGet gets pet by it s ID

func (*Client) PetList

func (a *Client) PetList(ctx context.Context, params *PetListParams) (*PetListOK, error)

PetList lists pets

func (*Client) PetUpdate

func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error)

PetUpdate updates an existing pet

type MockAPI

type MockAPI struct {
	mock.Mock
}

MockAPI is an autogenerated mock type for the API type

func (*MockAPI) PetCreate

func (_m *MockAPI) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error)

PetCreate provides a mock function with given fields: ctx, params

func (*MockAPI) PetDelete

func (_m *MockAPI) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error)

PetDelete provides a mock function with given fields: ctx, params

func (*MockAPI) PetGet

func (_m *MockAPI) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error)

PetGet provides a mock function with given fields: ctx, params

func (*MockAPI) PetList

func (_m *MockAPI) PetList(ctx context.Context, params *PetListParams) (*PetListOK, error)

PetList provides a mock function with given fields: ctx, params

func (*MockAPI) PetUpdate

func (_m *MockAPI) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error)

PetUpdate provides a mock function with given fields: ctx, params

type PetCreateCreated

type PetCreateCreated struct {
	Payload *models.Pet
}

PetCreateCreated handles this case with default header values.

Created

func NewPetCreateCreated

func NewPetCreateCreated() *PetCreateCreated

NewPetCreateCreated creates a PetCreateCreated with default headers values

func (*PetCreateCreated) Error

func (o *PetCreateCreated) Error() string

type PetCreateMethodNotAllowed

type PetCreateMethodNotAllowed struct {
}

PetCreateMethodNotAllowed handles this case with default header values.

Invalid input

func NewPetCreateMethodNotAllowed

func NewPetCreateMethodNotAllowed() *PetCreateMethodNotAllowed

NewPetCreateMethodNotAllowed creates a PetCreateMethodNotAllowed with default headers values

func (*PetCreateMethodNotAllowed) Error

func (o *PetCreateMethodNotAllowed) Error() string

type PetCreateParams

type PetCreateParams struct {

	/*Body
	  Pet object that needs to be added to the store

	*/
	Body *models.Pet

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

PetCreateParams contains all the parameters to send to the API endpoint for the pet create operation typically these are written to a http.Request

func NewPetCreateParams added in v1.0.13

func NewPetCreateParams() *PetCreateParams

NewPetCreateParams creates a new PetCreateParams object with the default values initialized.

func NewPetCreateParamsWithContext added in v1.0.13

func NewPetCreateParamsWithContext(ctx context.Context) *PetCreateParams

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

func NewPetCreateParamsWithHTTPClient added in v1.0.13

func NewPetCreateParamsWithHTTPClient(client *http.Client) *PetCreateParams

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

func NewPetCreateParamsWithTimeout added in v1.0.13

func NewPetCreateParamsWithTimeout(timeout time.Duration) *PetCreateParams

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

func (*PetCreateParams) SetBody added in v1.0.13

func (o *PetCreateParams) SetBody(body *models.Pet)

SetBody adds the body to the pet create params

func (*PetCreateParams) SetContext added in v1.0.13

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

SetContext adds the context to the pet create params

func (*PetCreateParams) SetHTTPClient added in v1.0.13

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

SetHTTPClient adds the HTTPClient to the pet create params

func (*PetCreateParams) SetTimeout added in v1.0.13

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

SetTimeout adds the timeout to the pet create params

func (*PetCreateParams) WithBody added in v1.0.13

func (o *PetCreateParams) WithBody(body *models.Pet) *PetCreateParams

WithBody adds the body to the pet create params

func (*PetCreateParams) WithContext added in v1.0.13

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

WithContext adds the context to the pet create params

func (*PetCreateParams) WithHTTPClient added in v1.0.13

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

WithHTTPClient adds the HTTPClient to the pet create params

func (*PetCreateParams) WithTimeout added in v1.0.13

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

WithTimeout adds the timeout to the pet create params

func (*PetCreateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetCreateReader

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

PetCreateReader is a Reader for the PetCreate structure.

func (*PetCreateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PetDeleteBadRequest

type PetDeleteBadRequest struct {
}

PetDeleteBadRequest handles this case with default header values.

Invalid ID supplied

func NewPetDeleteBadRequest

func NewPetDeleteBadRequest() *PetDeleteBadRequest

NewPetDeleteBadRequest creates a PetDeleteBadRequest with default headers values

func (*PetDeleteBadRequest) Error

func (o *PetDeleteBadRequest) Error() string

type PetDeleteNoContent

type PetDeleteNoContent struct {
}

PetDeleteNoContent handles this case with default header values.

Deleted successfully

func NewPetDeleteNoContent

func NewPetDeleteNoContent() *PetDeleteNoContent

NewPetDeleteNoContent creates a PetDeleteNoContent with default headers values

func (*PetDeleteNoContent) Error

func (o *PetDeleteNoContent) Error() string

type PetDeleteNotFound

type PetDeleteNotFound struct {
}

PetDeleteNotFound handles this case with default header values.

Pet not found

func NewPetDeleteNotFound

func NewPetDeleteNotFound() *PetDeleteNotFound

NewPetDeleteNotFound creates a PetDeleteNotFound with default headers values

func (*PetDeleteNotFound) Error

func (o *PetDeleteNotFound) Error() string

type PetDeleteParams

type PetDeleteParams struct {

	/*APIKey*/
	APIKey *string
	/*PetID
	  Pet id to delete

	*/
	PetID int64

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

PetDeleteParams contains all the parameters to send to the API endpoint for the pet delete operation typically these are written to a http.Request

func NewPetDeleteParams added in v1.0.13

func NewPetDeleteParams() *PetDeleteParams

NewPetDeleteParams creates a new PetDeleteParams object with the default values initialized.

func NewPetDeleteParamsWithContext added in v1.0.13

func NewPetDeleteParamsWithContext(ctx context.Context) *PetDeleteParams

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

func NewPetDeleteParamsWithHTTPClient added in v1.0.13

func NewPetDeleteParamsWithHTTPClient(client *http.Client) *PetDeleteParams

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

func NewPetDeleteParamsWithTimeout added in v1.0.13

func NewPetDeleteParamsWithTimeout(timeout time.Duration) *PetDeleteParams

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

func (*PetDeleteParams) SetAPIKey added in v1.0.13

func (o *PetDeleteParams) SetAPIKey(aPIKey *string)

SetAPIKey adds the apiKey to the pet delete params

func (*PetDeleteParams) SetContext added in v1.0.13

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

SetContext adds the context to the pet delete params

func (*PetDeleteParams) SetHTTPClient added in v1.0.13

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

SetHTTPClient adds the HTTPClient to the pet delete params

func (*PetDeleteParams) SetPetID added in v1.0.13

func (o *PetDeleteParams) SetPetID(petID int64)

SetPetID adds the petId to the pet delete params

func (*PetDeleteParams) SetTimeout added in v1.0.13

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

SetTimeout adds the timeout to the pet delete params

func (*PetDeleteParams) WithAPIKey added in v1.0.13

func (o *PetDeleteParams) WithAPIKey(aPIKey *string) *PetDeleteParams

WithAPIKey adds the aPIKey to the pet delete params

func (*PetDeleteParams) WithContext added in v1.0.13

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

WithContext adds the context to the pet delete params

func (*PetDeleteParams) WithHTTPClient added in v1.0.13

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

WithHTTPClient adds the HTTPClient to the pet delete params

func (*PetDeleteParams) WithPetID added in v1.0.13

func (o *PetDeleteParams) WithPetID(petID int64) *PetDeleteParams

WithPetID adds the petID to the pet delete params

func (*PetDeleteParams) WithTimeout added in v1.0.13

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

WithTimeout adds the timeout to the pet delete params

func (*PetDeleteParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetDeleteReader

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

PetDeleteReader is a Reader for the PetDelete structure.

func (*PetDeleteReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PetGetBadRequest

type PetGetBadRequest struct {
}

PetGetBadRequest handles this case with default header values.

Invalid ID supplied

func NewPetGetBadRequest

func NewPetGetBadRequest() *PetGetBadRequest

NewPetGetBadRequest creates a PetGetBadRequest with default headers values

func (*PetGetBadRequest) Error

func (o *PetGetBadRequest) Error() string

type PetGetNotFound

type PetGetNotFound struct {
}

PetGetNotFound handles this case with default header values.

Pet not found

func NewPetGetNotFound

func NewPetGetNotFound() *PetGetNotFound

NewPetGetNotFound creates a PetGetNotFound with default headers values

func (*PetGetNotFound) Error

func (o *PetGetNotFound) Error() string

type PetGetOK

type PetGetOK struct {
	Payload *models.Pet
}

PetGetOK handles this case with default header values.

successful operation

func NewPetGetOK

func NewPetGetOK() *PetGetOK

NewPetGetOK creates a PetGetOK with default headers values

func (*PetGetOK) Error

func (o *PetGetOK) Error() string

type PetGetParams

type PetGetParams struct {

	/*PetID
	  ID of pet to return

	*/
	PetID int64

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

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

func NewPetGetParams added in v1.0.13

func NewPetGetParams() *PetGetParams

NewPetGetParams creates a new PetGetParams object with the default values initialized.

func NewPetGetParamsWithContext added in v1.0.13

func NewPetGetParamsWithContext(ctx context.Context) *PetGetParams

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

func NewPetGetParamsWithHTTPClient added in v1.0.13

func NewPetGetParamsWithHTTPClient(client *http.Client) *PetGetParams

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

func NewPetGetParamsWithTimeout added in v1.0.13

func NewPetGetParamsWithTimeout(timeout time.Duration) *PetGetParams

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

func (*PetGetParams) SetContext added in v1.0.13

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

SetContext adds the context to the pet get params

func (*PetGetParams) SetHTTPClient added in v1.0.13

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

SetHTTPClient adds the HTTPClient to the pet get params

func (*PetGetParams) SetPetID added in v1.0.13

func (o *PetGetParams) SetPetID(petID int64)

SetPetID adds the petId to the pet get params

func (*PetGetParams) SetTimeout added in v1.0.13

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

SetTimeout adds the timeout to the pet get params

func (*PetGetParams) WithContext added in v1.0.13

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

WithContext adds the context to the pet get params

func (*PetGetParams) WithHTTPClient added in v1.0.13

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

WithHTTPClient adds the HTTPClient to the pet get params

func (*PetGetParams) WithPetID added in v1.0.13

func (o *PetGetParams) WithPetID(petID int64) *PetGetParams

WithPetID adds the petID to the pet get params

func (*PetGetParams) WithTimeout added in v1.0.13

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

WithTimeout adds the timeout to the pet get params

func (*PetGetParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetGetReader

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

PetGetReader is a Reader for the PetGet structure.

func (*PetGetReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PetListBadRequest

type PetListBadRequest struct {
}

PetListBadRequest handles this case with default header values.

Invalid status value

func NewPetListBadRequest

func NewPetListBadRequest() *PetListBadRequest

NewPetListBadRequest creates a PetListBadRequest with default headers values

func (*PetListBadRequest) Error

func (o *PetListBadRequest) Error() string

type PetListOK

type PetListOK struct {
	Payload []*models.Pet
}

PetListOK handles this case with default header values.

successful operation

func NewPetListOK

func NewPetListOK() *PetListOK

NewPetListOK creates a PetListOK with default headers values

func (*PetListOK) Error

func (o *PetListOK) Error() string

type PetListParams

type PetListParams struct {

	/*Status
	  Status values that need to be considered for filter

	*/
	Status []string

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

PetListParams contains all the parameters to send to the API endpoint for the pet list operation typically these are written to a http.Request

func NewPetListParams added in v1.0.13

func NewPetListParams() *PetListParams

NewPetListParams creates a new PetListParams object with the default values initialized.

func NewPetListParamsWithContext added in v1.0.13

func NewPetListParamsWithContext(ctx context.Context) *PetListParams

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

func NewPetListParamsWithHTTPClient added in v1.0.13

func NewPetListParamsWithHTTPClient(client *http.Client) *PetListParams

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

func NewPetListParamsWithTimeout added in v1.0.13

func NewPetListParamsWithTimeout(timeout time.Duration) *PetListParams

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

func (*PetListParams) SetContext added in v1.0.13

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

SetContext adds the context to the pet list params

func (*PetListParams) SetHTTPClient added in v1.0.13

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

SetHTTPClient adds the HTTPClient to the pet list params

func (*PetListParams) SetStatus added in v1.0.13

func (o *PetListParams) SetStatus(status []string)

SetStatus adds the status to the pet list params

func (*PetListParams) SetTimeout added in v1.0.13

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

SetTimeout adds the timeout to the pet list params

func (*PetListParams) WithContext added in v1.0.13

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

WithContext adds the context to the pet list params

func (*PetListParams) WithHTTPClient added in v1.0.13

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

WithHTTPClient adds the HTTPClient to the pet list params

func (*PetListParams) WithStatus added in v1.0.13

func (o *PetListParams) WithStatus(status []string) *PetListParams

WithStatus adds the status to the pet list params

func (*PetListParams) WithTimeout added in v1.0.13

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

WithTimeout adds the timeout to the pet list params

func (*PetListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetListReader

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

PetListReader is a Reader for the PetList structure.

func (*PetListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PetUpdateBadRequest

type PetUpdateBadRequest struct {
}

PetUpdateBadRequest handles this case with default header values.

Invalid ID supplied

func NewPetUpdateBadRequest

func NewPetUpdateBadRequest() *PetUpdateBadRequest

NewPetUpdateBadRequest creates a PetUpdateBadRequest with default headers values

func (*PetUpdateBadRequest) Error

func (o *PetUpdateBadRequest) Error() string

type PetUpdateCreated

type PetUpdateCreated struct {
	Payload *models.Pet
}

PetUpdateCreated handles this case with default header values.

Updated successfully

func NewPetUpdateCreated

func NewPetUpdateCreated() *PetUpdateCreated

NewPetUpdateCreated creates a PetUpdateCreated with default headers values

func (*PetUpdateCreated) Error

func (o *PetUpdateCreated) Error() string

type PetUpdateMethodNotAllowed

type PetUpdateMethodNotAllowed struct {
}

PetUpdateMethodNotAllowed handles this case with default header values.

Validation exception

func NewPetUpdateMethodNotAllowed

func NewPetUpdateMethodNotAllowed() *PetUpdateMethodNotAllowed

NewPetUpdateMethodNotAllowed creates a PetUpdateMethodNotAllowed with default headers values

func (*PetUpdateMethodNotAllowed) Error

func (o *PetUpdateMethodNotAllowed) Error() string

type PetUpdateNotFound

type PetUpdateNotFound struct {
}

PetUpdateNotFound handles this case with default header values.

Pet not found

func NewPetUpdateNotFound

func NewPetUpdateNotFound() *PetUpdateNotFound

NewPetUpdateNotFound creates a PetUpdateNotFound with default headers values

func (*PetUpdateNotFound) Error

func (o *PetUpdateNotFound) Error() string

type PetUpdateParams

type PetUpdateParams struct {

	/*Body
	  Pet object that needs to be added to the store

	*/
	Body *models.Pet

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

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

func NewPetUpdateParams added in v1.0.13

func NewPetUpdateParams() *PetUpdateParams

NewPetUpdateParams creates a new PetUpdateParams object with the default values initialized.

func NewPetUpdateParamsWithContext added in v1.0.13

func NewPetUpdateParamsWithContext(ctx context.Context) *PetUpdateParams

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

func NewPetUpdateParamsWithHTTPClient added in v1.0.13

func NewPetUpdateParamsWithHTTPClient(client *http.Client) *PetUpdateParams

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

func NewPetUpdateParamsWithTimeout added in v1.0.13

func NewPetUpdateParamsWithTimeout(timeout time.Duration) *PetUpdateParams

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

func (*PetUpdateParams) SetBody added in v1.0.13

func (o *PetUpdateParams) SetBody(body *models.Pet)

SetBody adds the body to the pet update params

func (*PetUpdateParams) SetContext added in v1.0.13

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

SetContext adds the context to the pet update params

func (*PetUpdateParams) SetHTTPClient added in v1.0.13

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

SetHTTPClient adds the HTTPClient to the pet update params

func (*PetUpdateParams) SetTimeout added in v1.0.13

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

SetTimeout adds the timeout to the pet update params

func (*PetUpdateParams) WithBody added in v1.0.13

func (o *PetUpdateParams) WithBody(body *models.Pet) *PetUpdateParams

WithBody adds the body to the pet update params

func (*PetUpdateParams) WithContext added in v1.0.13

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

WithContext adds the context to the pet update params

func (*PetUpdateParams) WithHTTPClient added in v1.0.13

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

WithHTTPClient adds the HTTPClient to the pet update params

func (*PetUpdateParams) WithTimeout added in v1.0.13

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

WithTimeout adds the timeout to the pet update params

func (*PetUpdateParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetUpdateReader

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

PetUpdateReader is a Reader for the PetUpdate structure.

func (*PetUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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