Versions in this module Expand all Collapse all v0 v0.17.0 Oct 7, 2018 Changes in this version + type API interface + PetCreate func(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error) + PetDelete func(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) + PetGet func(ctx context.Context, params *PetGetParams) (*PetGetOK, error) + PetList func(ctx context.Context, params *PetListParams) (*PetListOK, error) + PetUpdate func(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error) + PetUploadImage func(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error) + type Client struct + func New(transport runtime.ClientTransport, formats strfmt.Registry, ...) *Client + func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error) + func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) + func (a *Client) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error) + func (a *Client) PetList(ctx context.Context, params *PetListParams) (*PetListOK, error) + func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error) + func (a *Client) PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error) + type PetCreateCreated struct + Payload *models.Pet + func NewPetCreateCreated() *PetCreateCreated + func (o *PetCreateCreated) Error() string + type PetCreateMethodNotAllowed struct + func NewPetCreateMethodNotAllowed() *PetCreateMethodNotAllowed + func (o *PetCreateMethodNotAllowed) Error() string + type PetCreateParams struct + Body *models.Pet + Context context.Context + HTTPClient *http.Client + func NewPetCreateParams() *PetCreateParams + func NewPetCreateParamsWithContext(ctx context.Context) *PetCreateParams + func NewPetCreateParamsWithHTTPClient(client *http.Client) *PetCreateParams + func NewPetCreateParamsWithTimeout(timeout time.Duration) *PetCreateParams + func (o *PetCreateParams) SetBody(body *models.Pet) + func (o *PetCreateParams) SetContext(ctx context.Context) + func (o *PetCreateParams) SetHTTPClient(client *http.Client) + func (o *PetCreateParams) SetTimeout(timeout time.Duration) + func (o *PetCreateParams) WithBody(body *models.Pet) *PetCreateParams + func (o *PetCreateParams) WithContext(ctx context.Context) *PetCreateParams + func (o *PetCreateParams) WithHTTPClient(client *http.Client) *PetCreateParams + func (o *PetCreateParams) WithTimeout(timeout time.Duration) *PetCreateParams + func (o *PetCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetCreateReader struct + func (o *PetCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type PetDeleteBadRequest struct + func NewPetDeleteBadRequest() *PetDeleteBadRequest + func (o *PetDeleteBadRequest) Error() string + type PetDeleteNoContent struct + func NewPetDeleteNoContent() *PetDeleteNoContent + func (o *PetDeleteNoContent) Error() string + type PetDeleteNotFound struct + func NewPetDeleteNotFound() *PetDeleteNotFound + func (o *PetDeleteNotFound) Error() string + type PetDeleteParams struct + APIKey *string + Context context.Context + HTTPClient *http.Client + PetID int64 + func NewPetDeleteParams() *PetDeleteParams + func NewPetDeleteParamsWithContext(ctx context.Context) *PetDeleteParams + func NewPetDeleteParamsWithHTTPClient(client *http.Client) *PetDeleteParams + func NewPetDeleteParamsWithTimeout(timeout time.Duration) *PetDeleteParams + func (o *PetDeleteParams) SetAPIKey(aPIKey *string) + func (o *PetDeleteParams) SetContext(ctx context.Context) + func (o *PetDeleteParams) SetHTTPClient(client *http.Client) + func (o *PetDeleteParams) SetPetID(petID int64) + func (o *PetDeleteParams) SetTimeout(timeout time.Duration) + func (o *PetDeleteParams) WithAPIKey(aPIKey *string) *PetDeleteParams + func (o *PetDeleteParams) WithContext(ctx context.Context) *PetDeleteParams + func (o *PetDeleteParams) WithHTTPClient(client *http.Client) *PetDeleteParams + func (o *PetDeleteParams) WithPetID(petID int64) *PetDeleteParams + func (o *PetDeleteParams) WithTimeout(timeout time.Duration) *PetDeleteParams + func (o *PetDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetDeleteReader struct + func (o *PetDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type PetGetBadRequest struct + func NewPetGetBadRequest() *PetGetBadRequest + func (o *PetGetBadRequest) Error() string + type PetGetNotFound struct + func NewPetGetNotFound() *PetGetNotFound + func (o *PetGetNotFound) Error() string + type PetGetOK struct + Payload *models.Pet + func NewPetGetOK() *PetGetOK + func (o *PetGetOK) Error() string + type PetGetParams struct + Context context.Context + HTTPClient *http.Client + PetID int64 + func NewPetGetParams() *PetGetParams + func NewPetGetParamsWithContext(ctx context.Context) *PetGetParams + func NewPetGetParamsWithHTTPClient(client *http.Client) *PetGetParams + func NewPetGetParamsWithTimeout(timeout time.Duration) *PetGetParams + func (o *PetGetParams) SetContext(ctx context.Context) + func (o *PetGetParams) SetHTTPClient(client *http.Client) + func (o *PetGetParams) SetPetID(petID int64) + func (o *PetGetParams) SetTimeout(timeout time.Duration) + func (o *PetGetParams) WithContext(ctx context.Context) *PetGetParams + func (o *PetGetParams) WithHTTPClient(client *http.Client) *PetGetParams + func (o *PetGetParams) WithPetID(petID int64) *PetGetParams + func (o *PetGetParams) WithTimeout(timeout time.Duration) *PetGetParams + func (o *PetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetGetReader struct + func (o *PetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type PetListBadRequest struct + func NewPetListBadRequest() *PetListBadRequest + func (o *PetListBadRequest) Error() string + type PetListOK struct + Payload []*models.Pet + func NewPetListOK() *PetListOK + func (o *PetListOK) Error() string + type PetListParams struct + Context context.Context + HTTPClient *http.Client + Status []string + func NewPetListParams() *PetListParams + func NewPetListParamsWithContext(ctx context.Context) *PetListParams + func NewPetListParamsWithHTTPClient(client *http.Client) *PetListParams + func NewPetListParamsWithTimeout(timeout time.Duration) *PetListParams + func (o *PetListParams) SetContext(ctx context.Context) + func (o *PetListParams) SetHTTPClient(client *http.Client) + func (o *PetListParams) SetStatus(status []string) + func (o *PetListParams) SetTimeout(timeout time.Duration) + func (o *PetListParams) WithContext(ctx context.Context) *PetListParams + func (o *PetListParams) WithHTTPClient(client *http.Client) *PetListParams + func (o *PetListParams) WithStatus(status []string) *PetListParams + func (o *PetListParams) WithTimeout(timeout time.Duration) *PetListParams + func (o *PetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetListReader struct + func (o *PetListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type PetUpdateBadRequest struct + func NewPetUpdateBadRequest() *PetUpdateBadRequest + func (o *PetUpdateBadRequest) Error() string + type PetUpdateCreated struct + Payload *models.Pet + func NewPetUpdateCreated() *PetUpdateCreated + func (o *PetUpdateCreated) Error() string + type PetUpdateMethodNotAllowed struct + func NewPetUpdateMethodNotAllowed() *PetUpdateMethodNotAllowed + func (o *PetUpdateMethodNotAllowed) Error() string + type PetUpdateNotFound struct + func NewPetUpdateNotFound() *PetUpdateNotFound + func (o *PetUpdateNotFound) Error() string + type PetUpdateParams struct + Body *models.Pet + Context context.Context + HTTPClient *http.Client + func NewPetUpdateParams() *PetUpdateParams + func NewPetUpdateParamsWithContext(ctx context.Context) *PetUpdateParams + func NewPetUpdateParamsWithHTTPClient(client *http.Client) *PetUpdateParams + func NewPetUpdateParamsWithTimeout(timeout time.Duration) *PetUpdateParams + func (o *PetUpdateParams) SetBody(body *models.Pet) + func (o *PetUpdateParams) SetContext(ctx context.Context) + func (o *PetUpdateParams) SetHTTPClient(client *http.Client) + func (o *PetUpdateParams) SetTimeout(timeout time.Duration) + func (o *PetUpdateParams) WithBody(body *models.Pet) *PetUpdateParams + func (o *PetUpdateParams) WithContext(ctx context.Context) *PetUpdateParams + func (o *PetUpdateParams) WithHTTPClient(client *http.Client) *PetUpdateParams + func (o *PetUpdateParams) WithTimeout(timeout time.Duration) *PetUpdateParams + func (o *PetUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetUpdateReader struct + func (o *PetUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error) + type PetUploadImageOK struct + Payload *models.APIResponse + func NewPetUploadImageOK() *PetUploadImageOK + func (o *PetUploadImageOK) Error() string + type PetUploadImageParams struct + AdditionalMetadata *string + Context context.Context + File runtime.NamedReadCloser + HTTPClient *http.Client + PetID int64 + func NewPetUploadImageParams() *PetUploadImageParams + func NewPetUploadImageParamsWithContext(ctx context.Context) *PetUploadImageParams + func NewPetUploadImageParamsWithHTTPClient(client *http.Client) *PetUploadImageParams + func NewPetUploadImageParamsWithTimeout(timeout time.Duration) *PetUploadImageParams + func (o *PetUploadImageParams) SetAdditionalMetadata(additionalMetadata *string) + func (o *PetUploadImageParams) SetContext(ctx context.Context) + func (o *PetUploadImageParams) SetFile(file runtime.NamedReadCloser) + func (o *PetUploadImageParams) SetHTTPClient(client *http.Client) + func (o *PetUploadImageParams) SetPetID(petID int64) + func (o *PetUploadImageParams) SetTimeout(timeout time.Duration) + func (o *PetUploadImageParams) WithAdditionalMetadata(additionalMetadata *string) *PetUploadImageParams + func (o *PetUploadImageParams) WithContext(ctx context.Context) *PetUploadImageParams + func (o *PetUploadImageParams) WithFile(file runtime.NamedReadCloser) *PetUploadImageParams + func (o *PetUploadImageParams) WithHTTPClient(client *http.Client) *PetUploadImageParams + func (o *PetUploadImageParams) WithPetID(petID int64) *PetUploadImageParams + func (o *PetUploadImageParams) WithTimeout(timeout time.Duration) *PetUploadImageParams + func (o *PetUploadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error + type PetUploadImageReader struct + func (o *PetUploadImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)