pet

package
v0.18.0 Latest Latest
Warning

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

Go to latest
Published: Dec 22, 2018 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 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)
	// PetUploadImage uploads an image
	PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, 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

func (*Client) PetUploadImage

func (a *Client) PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error)

PetUploadImage uploads an image

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

func NewPetCreateParams() *PetCreateParams

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

func NewPetCreateParamsWithContext

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

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

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

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

SetBody adds the body to the pet create params

func (*PetCreateParams) SetContext

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

SetContext adds the context to the pet create params

func (*PetCreateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet create params

func (*PetCreateParams) SetTimeout

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

SetTimeout adds the timeout to the pet create params

func (*PetCreateParams) WithBody

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

WithBody adds the body to the pet create params

func (*PetCreateParams) WithContext

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

WithContext adds the context to the pet create params

func (*PetCreateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet create params

func (*PetCreateParams) WithTimeout

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

func NewPetDeleteParams() *PetDeleteParams

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

func NewPetDeleteParamsWithContext

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

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

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

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

SetAPIKey adds the apiKey to the pet delete params

func (*PetDeleteParams) SetContext

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

SetContext adds the context to the pet delete params

func (*PetDeleteParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet delete params

func (*PetDeleteParams) SetPetID

func (o *PetDeleteParams) SetPetID(petID int64)

SetPetID adds the petId to the pet delete params

func (*PetDeleteParams) SetTimeout

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

SetTimeout adds the timeout to the pet delete params

func (*PetDeleteParams) WithAPIKey

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

WithAPIKey adds the aPIKey to the pet delete params

func (*PetDeleteParams) WithContext

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

WithContext adds the context to the pet delete params

func (*PetDeleteParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet delete params

func (*PetDeleteParams) WithPetID

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

WithPetID adds the petID to the pet delete params

func (*PetDeleteParams) WithTimeout

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

func NewPetGetParams() *PetGetParams

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

func NewPetGetParamsWithContext

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

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

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

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

SetContext adds the context to the pet get params

func (*PetGetParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet get params

func (*PetGetParams) SetPetID

func (o *PetGetParams) SetPetID(petID int64)

SetPetID adds the petId to the pet get params

func (*PetGetParams) SetTimeout

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

SetTimeout adds the timeout to the pet get params

func (*PetGetParams) WithContext

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

WithContext adds the context to the pet get params

func (*PetGetParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet get params

func (*PetGetParams) WithPetID

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

WithPetID adds the petID to the pet get params

func (*PetGetParams) WithTimeout

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

func NewPetListParams() *PetListParams

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

func NewPetListParamsWithContext

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

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

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

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

SetContext adds the context to the pet list params

func (*PetListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet list params

func (*PetListParams) SetStatus

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

SetStatus adds the status to the pet list params

func (*PetListParams) SetTimeout

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

SetTimeout adds the timeout to the pet list params

func (*PetListParams) WithContext

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

WithContext adds the context to the pet list params

func (*PetListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet list params

func (*PetListParams) WithStatus

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

WithStatus adds the status to the pet list params

func (*PetListParams) WithTimeout

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

func NewPetUpdateParams() *PetUpdateParams

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

func NewPetUpdateParamsWithContext

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

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

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

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

SetBody adds the body to the pet update params

func (*PetUpdateParams) SetContext

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

SetContext adds the context to the pet update params

func (*PetUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet update params

func (*PetUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the pet update params

func (*PetUpdateParams) WithBody

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

WithBody adds the body to the pet update params

func (*PetUpdateParams) WithContext

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

WithContext adds the context to the pet update params

func (*PetUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet update params

func (*PetUpdateParams) WithTimeout

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.

type PetUploadImageOK

type PetUploadImageOK struct {
	Payload *models.APIResponse
}

PetUploadImageOK handles this case with default header values.

successful operation

func NewPetUploadImageOK

func NewPetUploadImageOK() *PetUploadImageOK

NewPetUploadImageOK creates a PetUploadImageOK with default headers values

func (*PetUploadImageOK) Error

func (o *PetUploadImageOK) Error() string

type PetUploadImageParams

type PetUploadImageParams struct {

	/*AdditionalMetadata
	  Additional data to pass to server

	*/
	AdditionalMetadata *string
	/*File
	  file to upload

	*/
	File runtime.NamedReadCloser
	/*PetID
	  ID of pet to update

	*/
	PetID int64

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

PetUploadImageParams contains all the parameters to send to the API endpoint for the pet upload image operation typically these are written to a http.Request

func NewPetUploadImageParams

func NewPetUploadImageParams() *PetUploadImageParams

NewPetUploadImageParams creates a new PetUploadImageParams object with the default values initialized.

func NewPetUploadImageParamsWithContext

func NewPetUploadImageParamsWithContext(ctx context.Context) *PetUploadImageParams

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

func NewPetUploadImageParamsWithHTTPClient

func NewPetUploadImageParamsWithHTTPClient(client *http.Client) *PetUploadImageParams

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

func NewPetUploadImageParamsWithTimeout

func NewPetUploadImageParamsWithTimeout(timeout time.Duration) *PetUploadImageParams

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

func (*PetUploadImageParams) SetAdditionalMetadata

func (o *PetUploadImageParams) SetAdditionalMetadata(additionalMetadata *string)

SetAdditionalMetadata adds the additionalMetadata to the pet upload image params

func (*PetUploadImageParams) SetContext

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

SetContext adds the context to the pet upload image params

func (*PetUploadImageParams) SetFile

func (o *PetUploadImageParams) SetFile(file runtime.NamedReadCloser)

SetFile adds the file to the pet upload image params

func (*PetUploadImageParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the pet upload image params

func (*PetUploadImageParams) SetPetID

func (o *PetUploadImageParams) SetPetID(petID int64)

SetPetID adds the petId to the pet upload image params

func (*PetUploadImageParams) SetTimeout

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

SetTimeout adds the timeout to the pet upload image params

func (*PetUploadImageParams) WithAdditionalMetadata

func (o *PetUploadImageParams) WithAdditionalMetadata(additionalMetadata *string) *PetUploadImageParams

WithAdditionalMetadata adds the additionalMetadata to the pet upload image params

func (*PetUploadImageParams) WithContext

WithContext adds the context to the pet upload image params

func (*PetUploadImageParams) WithFile

WithFile adds the file to the pet upload image params

func (*PetUploadImageParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the pet upload image params

func (*PetUploadImageParams) WithPetID

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

WithPetID adds the petID to the pet upload image params

func (*PetUploadImageParams) WithTimeout

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

WithTimeout adds the timeout to the pet upload image params

func (*PetUploadImageParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type PetUploadImageReader

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

PetUploadImageReader is a Reader for the PetUploadImage structure.

func (*PetUploadImageReader) ReadResponse

func (o *PetUploadImageReader) 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