stub

package
v0.0.0-...-2e07358 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2023 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

Package stub provides primitives to interact with the openapi HTTP API.

Code generated by github.com/chestarss/elk version (devel) DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewCreateCategoryRequest

func NewCreateCategoryRequest(server string, body CreateCategoryJSONRequestBody) (*http.Request, error)

NewCreateCategoryRequest calls the generic CreateCategory builder with application/json body

func NewCreateCategoryRequestWithBody

func NewCreateCategoryRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCategoryRequestWithBody generates requests for CreateCategory with any type of body

func NewCreateCollarRequest

func NewCreateCollarRequest(server string, body CreateCollarJSONRequestBody) (*http.Request, error)

NewCreateCollarRequest calls the generic CreateCollar builder with application/json body

func NewCreateCollarRequestWithBody

func NewCreateCollarRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateCollarRequestWithBody generates requests for CreateCollar with any type of body

func NewCreateOwnerRequest

func NewCreateOwnerRequest(server string, body CreateOwnerJSONRequestBody) (*http.Request, error)

NewCreateOwnerRequest calls the generic CreateOwner builder with application/json body

func NewCreateOwnerRequestWithBody

func NewCreateOwnerRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreateOwnerRequestWithBody generates requests for CreateOwner with any type of body

func NewCreatePetRequest

func NewCreatePetRequest(server string, body CreatePetJSONRequestBody) (*http.Request, error)

NewCreatePetRequest calls the generic CreatePet builder with application/json body

func NewCreatePetRequestWithBody

func NewCreatePetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)

NewCreatePetRequestWithBody generates requests for CreatePet with any type of body

func NewDeleteCategoryRequest

func NewDeleteCategoryRequest(server string, id int64) (*http.Request, error)

NewDeleteCategoryRequest generates requests for DeleteCategory

func NewDeleteCollarRequest

func NewDeleteCollarRequest(server string, id int32) (*http.Request, error)

NewDeleteCollarRequest generates requests for DeleteCollar

func NewDeleteOwnerRequest

func NewDeleteOwnerRequest(server string, id string) (*http.Request, error)

NewDeleteOwnerRequest generates requests for DeleteOwner

func NewDeletePetRequest

func NewDeletePetRequest(server string, id string) (*http.Request, error)

NewDeletePetRequest generates requests for DeletePet

func NewListCategoryPetsRequest

func NewListCategoryPetsRequest(server string, id int64, params *ListCategoryPetsParams) (*http.Request, error)

NewListCategoryPetsRequest generates requests for ListCategoryPets

func NewListCategoryRequest

func NewListCategoryRequest(server string, params *ListCategoryParams) (*http.Request, error)

NewListCategoryRequest generates requests for ListCategory

func NewListCollarRequest

func NewListCollarRequest(server string, params *ListCollarParams) (*http.Request, error)

NewListCollarRequest generates requests for ListCollar

func NewListOwnerPetsRequest

func NewListOwnerPetsRequest(server string, id string, params *ListOwnerPetsParams) (*http.Request, error)

NewListOwnerPetsRequest generates requests for ListOwnerPets

func NewListOwnerRequest

func NewListOwnerRequest(server string, params *ListOwnerParams) (*http.Request, error)

NewListOwnerRequest generates requests for ListOwner

func NewListPetCategoriesRequest

func NewListPetCategoriesRequest(server string, id string, params *ListPetCategoriesParams) (*http.Request, error)

NewListPetCategoriesRequest generates requests for ListPetCategories

func NewListPetFriendsRequest

func NewListPetFriendsRequest(server string, id string, params *ListPetFriendsParams) (*http.Request, error)

NewListPetFriendsRequest generates requests for ListPetFriends

func NewListPetRequest

func NewListPetRequest(server string, params *ListPetParams) (*http.Request, error)

NewListPetRequest generates requests for ListPet

func NewReadCategoryRequest

func NewReadCategoryRequest(server string, id int64) (*http.Request, error)

NewReadCategoryRequest generates requests for ReadCategory

func NewReadCollarPetRequest

func NewReadCollarPetRequest(server string, id int32) (*http.Request, error)

NewReadCollarPetRequest generates requests for ReadCollarPet

func NewReadCollarRequest

func NewReadCollarRequest(server string, id int32) (*http.Request, error)

NewReadCollarRequest generates requests for ReadCollar

func NewReadOwnerRequest

func NewReadOwnerRequest(server string, id string) (*http.Request, error)

NewReadOwnerRequest generates requests for ReadOwner

func NewReadPetCollarRequest

func NewReadPetCollarRequest(server string, id string) (*http.Request, error)

NewReadPetCollarRequest generates requests for ReadPetCollar

func NewReadPetOwnerRequest

func NewReadPetOwnerRequest(server string, id string) (*http.Request, error)

NewReadPetOwnerRequest generates requests for ReadPetOwner

func NewReadPetRequest

func NewReadPetRequest(server string, id string) (*http.Request, error)

NewReadPetRequest generates requests for ReadPet

func NewUpdateCategoryRequest

func NewUpdateCategoryRequest(server string, id int64, body UpdateCategoryJSONRequestBody) (*http.Request, error)

NewUpdateCategoryRequest calls the generic UpdateCategory builder with application/json body

func NewUpdateCategoryRequestWithBody

func NewUpdateCategoryRequestWithBody(server string, id int64, contentType string, body io.Reader) (*http.Request, error)

NewUpdateCategoryRequestWithBody generates requests for UpdateCategory with any type of body

func NewUpdateCollarRequest

func NewUpdateCollarRequest(server string, id int32, body UpdateCollarJSONRequestBody) (*http.Request, error)

NewUpdateCollarRequest calls the generic UpdateCollar builder with application/json body

func NewUpdateCollarRequestWithBody

func NewUpdateCollarRequestWithBody(server string, id int32, contentType string, body io.Reader) (*http.Request, error)

NewUpdateCollarRequestWithBody generates requests for UpdateCollar with any type of body

func NewUpdateOwnerRequest

func NewUpdateOwnerRequest(server string, id string, body UpdateOwnerJSONRequestBody) (*http.Request, error)

NewUpdateOwnerRequest calls the generic UpdateOwner builder with application/json body

func NewUpdateOwnerRequestWithBody

func NewUpdateOwnerRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdateOwnerRequestWithBody generates requests for UpdateOwner with any type of body

func NewUpdatePetRequest

func NewUpdatePetRequest(server string, id string, body UpdatePetJSONRequestBody) (*http.Request, error)

NewUpdatePetRequest calls the generic UpdatePet builder with application/json body

func NewUpdatePetRequestWithBody

func NewUpdatePetRequestWithBody(server string, id string, contentType string, body io.Reader) (*http.Request, error)

NewUpdatePetRequestWithBody generates requests for UpdatePet with any type of body

Types

type Category4094953247View

type Category4094953247View struct {
	Id   int64  `json:"id"`
	Name string `json:"name"`
}

Category4094953247View defines model for Category4094953247View.

type Client

type Client struct {
	// The endpoint of the server conforming to this interface, with scheme,
	// https://api.deepmap.com for example. This can contain a path relative
	// to the server, such as https://api.deepmap.com/dev-test, and all the
	// paths in the swagger spec will be appended to the server.
	Server string

	// Doer for performing requests, typically a *http.Client with any
	// customized settings, such as certificate chains.
	Client HttpRequestDoer

	// A list of callbacks for modifying requests which are generated before sending over
	// the network.
	RequestEditors []RequestEditorFn
}

Client which conforms to the OpenAPI3 specification for this service.

func NewClient

func NewClient(server string, opts ...ClientOption) (*Client, error)

Creates a new Client, with reasonable defaults

func (*Client) CreateCategory

func (c *Client) CreateCategory(ctx context.Context, body CreateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCategoryWithBody

func (c *Client) CreateCategoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCollar

func (c *Client) CreateCollar(ctx context.Context, body CreateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateCollarWithBody

func (c *Client) CreateCollarWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOwner

func (c *Client) CreateOwner(ctx context.Context, body CreateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreateOwnerWithBody

func (c *Client) CreateOwnerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePet

func (c *Client) CreatePet(ctx context.Context, body CreatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) CreatePetWithBody

func (c *Client) CreatePetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCategory

func (c *Client) DeleteCategory(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteCollar

func (c *Client) DeleteCollar(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteOwner

func (c *Client) DeleteOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeletePet

func (c *Client) DeletePet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCategory

func (c *Client) ListCategory(ctx context.Context, params *ListCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCategoryPets

func (c *Client) ListCategoryPets(ctx context.Context, id int64, params *ListCategoryPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListCollar

func (c *Client) ListCollar(ctx context.Context, params *ListCollarParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListOwner

func (c *Client) ListOwner(ctx context.Context, params *ListOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListOwnerPets

func (c *Client) ListOwnerPets(ctx context.Context, id string, params *ListOwnerPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPet

func (c *Client) ListPet(ctx context.Context, params *ListPetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPetCategories

func (c *Client) ListPetCategories(ctx context.Context, id string, params *ListPetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ListPetFriends

func (c *Client) ListPetFriends(ctx context.Context, id string, params *ListPetFriendsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadCategory

func (c *Client) ReadCategory(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadCollar

func (c *Client) ReadCollar(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadCollarPet

func (c *Client) ReadCollarPet(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadOwner

func (c *Client) ReadOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadPet

func (c *Client) ReadPet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadPetCollar

func (c *Client) ReadPetCollar(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) ReadPetOwner

func (c *Client) ReadPetOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCategory

func (c *Client) UpdateCategory(ctx context.Context, id int64, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCategoryWithBody

func (c *Client) UpdateCategoryWithBody(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCollar

func (c *Client) UpdateCollar(ctx context.Context, id int32, body UpdateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateCollarWithBody

func (c *Client) UpdateCollarWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateOwner

func (c *Client) UpdateOwner(ctx context.Context, id string, body UpdateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateOwnerWithBody

func (c *Client) UpdateOwnerWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePet

func (c *Client) UpdatePet(ctx context.Context, id string, body UpdatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdatePetWithBody

func (c *Client) UpdatePetWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

type ClientInterface

type ClientInterface interface {
	// ListCategory request
	ListCategory(ctx context.Context, params *ListCategoryParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCategory request with any body
	CreateCategoryWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCategory(ctx context.Context, body CreateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCategory request
	DeleteCategory(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadCategory request
	ReadCategory(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCategory request with any body
	UpdateCategoryWithBody(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCategory(ctx context.Context, id int64, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCategoryPets request
	ListCategoryPets(ctx context.Context, id int64, params *ListCategoryPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListCollar request
	ListCollar(ctx context.Context, params *ListCollarParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateCollar request with any body
	CreateCollarWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateCollar(ctx context.Context, body CreateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteCollar request
	DeleteCollar(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadCollar request
	ReadCollar(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateCollar request with any body
	UpdateCollarWithBody(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateCollar(ctx context.Context, id int32, body UpdateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadCollarPet request
	ReadCollarPet(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOwner request
	ListOwner(ctx context.Context, params *ListOwnerParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreateOwner request with any body
	CreateOwnerWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreateOwner(ctx context.Context, body CreateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeleteOwner request
	DeleteOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadOwner request
	ReadOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdateOwner request with any body
	UpdateOwnerWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdateOwner(ctx context.Context, id string, body UpdateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListOwnerPets request
	ListOwnerPets(ctx context.Context, id string, params *ListOwnerPetsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPet request
	ListPet(ctx context.Context, params *ListPetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// CreatePet request with any body
	CreatePetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	CreatePet(ctx context.Context, body CreatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// DeletePet request
	DeletePet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadPet request
	ReadPet(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UpdatePet request with any body
	UpdatePetWithBody(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePet(ctx context.Context, id string, body UpdatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPetCategories request
	ListPetCategories(ctx context.Context, id string, params *ListPetCategoriesParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadPetCollar request
	ReadPetCollar(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ListPetFriends request
	ListPetFriends(ctx context.Context, id string, params *ListPetFriendsParams, reqEditors ...RequestEditorFn) (*http.Response, error)

	// ReadPetOwner request
	ReadPetOwner(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*http.Response, error)
}

The interface specification for the client above.

type ClientOption

type ClientOption func(*Client) error

ClientOption allows setting custom parameters during construction

func WithBaseURL

func WithBaseURL(baseURL string) ClientOption

WithBaseURL overrides the baseURL.

func WithHTTPClient

func WithHTTPClient(doer HttpRequestDoer) ClientOption

WithHTTPClient allows overriding the default Doer, which is automatically created using http.Client. This is useful for tests.

func WithRequestEditorFn

func WithRequestEditorFn(fn RequestEditorFn) ClientOption

WithRequestEditorFn allows setting up a callback function, which will be called right before sending the request. This can be used to mutate the request.

type ClientWithResponses

type ClientWithResponses struct {
	ClientInterface
}

ClientWithResponses builds on ClientInterface to offer response payloads

func NewClientWithResponses

func NewClientWithResponses(server string, opts ...ClientOption) (*ClientWithResponses, error)

NewClientWithResponses creates a new ClientWithResponses, which wraps Client with return type handling

func (*ClientWithResponses) CreateCategoryWithBodyWithResponse

func (c *ClientWithResponses) CreateCategoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCategoryResponse, error)

CreateCategoryWithBodyWithResponse request with arbitrary body returning *CreateCategoryResponse

func (*ClientWithResponses) CreateCategoryWithResponse

func (c *ClientWithResponses) CreateCategoryWithResponse(ctx context.Context, body CreateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCategoryResponse, error)

func (*ClientWithResponses) CreateCollarWithBodyWithResponse

func (c *ClientWithResponses) CreateCollarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCollarResponse, error)

CreateCollarWithBodyWithResponse request with arbitrary body returning *CreateCollarResponse

func (*ClientWithResponses) CreateCollarWithResponse

func (c *ClientWithResponses) CreateCollarWithResponse(ctx context.Context, body CreateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCollarResponse, error)

func (*ClientWithResponses) CreateOwnerWithBodyWithResponse

func (c *ClientWithResponses) CreateOwnerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOwnerResponse, error)

CreateOwnerWithBodyWithResponse request with arbitrary body returning *CreateOwnerResponse

func (*ClientWithResponses) CreateOwnerWithResponse

func (c *ClientWithResponses) CreateOwnerWithResponse(ctx context.Context, body CreateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOwnerResponse, error)

func (*ClientWithResponses) CreatePetWithBodyWithResponse

func (c *ClientWithResponses) CreatePetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePetResponse, error)

CreatePetWithBodyWithResponse request with arbitrary body returning *CreatePetResponse

func (*ClientWithResponses) CreatePetWithResponse

func (c *ClientWithResponses) CreatePetWithResponse(ctx context.Context, body CreatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePetResponse, error)

func (*ClientWithResponses) DeleteCategoryWithResponse

func (c *ClientWithResponses) DeleteCategoryWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error)

DeleteCategoryWithResponse request returning *DeleteCategoryResponse

func (*ClientWithResponses) DeleteCollarWithResponse

func (c *ClientWithResponses) DeleteCollarWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteCollarResponse, error)

DeleteCollarWithResponse request returning *DeleteCollarResponse

func (*ClientWithResponses) DeleteOwnerWithResponse

func (c *ClientWithResponses) DeleteOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteOwnerResponse, error)

DeleteOwnerWithResponse request returning *DeleteOwnerResponse

func (*ClientWithResponses) DeletePetWithResponse

func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeletePetResponse, error)

DeletePetWithResponse request returning *DeletePetResponse

func (*ClientWithResponses) ListCategoryPetsWithResponse

func (c *ClientWithResponses) ListCategoryPetsWithResponse(ctx context.Context, id int64, params *ListCategoryPetsParams, reqEditors ...RequestEditorFn) (*ListCategoryPetsResponse, error)

ListCategoryPetsWithResponse request returning *ListCategoryPetsResponse

func (*ClientWithResponses) ListCategoryWithResponse

func (c *ClientWithResponses) ListCategoryWithResponse(ctx context.Context, params *ListCategoryParams, reqEditors ...RequestEditorFn) (*ListCategoryResponse, error)

ListCategoryWithResponse request returning *ListCategoryResponse

func (*ClientWithResponses) ListCollarWithResponse

func (c *ClientWithResponses) ListCollarWithResponse(ctx context.Context, params *ListCollarParams, reqEditors ...RequestEditorFn) (*ListCollarResponse, error)

ListCollarWithResponse request returning *ListCollarResponse

func (*ClientWithResponses) ListOwnerPetsWithResponse

func (c *ClientWithResponses) ListOwnerPetsWithResponse(ctx context.Context, id string, params *ListOwnerPetsParams, reqEditors ...RequestEditorFn) (*ListOwnerPetsResponse, error)

ListOwnerPetsWithResponse request returning *ListOwnerPetsResponse

func (*ClientWithResponses) ListOwnerWithResponse

func (c *ClientWithResponses) ListOwnerWithResponse(ctx context.Context, params *ListOwnerParams, reqEditors ...RequestEditorFn) (*ListOwnerResponse, error)

ListOwnerWithResponse request returning *ListOwnerResponse

func (*ClientWithResponses) ListPetCategoriesWithResponse

func (c *ClientWithResponses) ListPetCategoriesWithResponse(ctx context.Context, id string, params *ListPetCategoriesParams, reqEditors ...RequestEditorFn) (*ListPetCategoriesResponse, error)

ListPetCategoriesWithResponse request returning *ListPetCategoriesResponse

func (*ClientWithResponses) ListPetFriendsWithResponse

func (c *ClientWithResponses) ListPetFriendsWithResponse(ctx context.Context, id string, params *ListPetFriendsParams, reqEditors ...RequestEditorFn) (*ListPetFriendsResponse, error)

ListPetFriendsWithResponse request returning *ListPetFriendsResponse

func (*ClientWithResponses) ListPetWithResponse

func (c *ClientWithResponses) ListPetWithResponse(ctx context.Context, params *ListPetParams, reqEditors ...RequestEditorFn) (*ListPetResponse, error)

ListPetWithResponse request returning *ListPetResponse

func (*ClientWithResponses) ReadCategoryWithResponse

func (c *ClientWithResponses) ReadCategoryWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*ReadCategoryResponse, error)

ReadCategoryWithResponse request returning *ReadCategoryResponse

func (*ClientWithResponses) ReadCollarPetWithResponse

func (c *ClientWithResponses) ReadCollarPetWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ReadCollarPetResponse, error)

ReadCollarPetWithResponse request returning *ReadCollarPetResponse

func (*ClientWithResponses) ReadCollarWithResponse

func (c *ClientWithResponses) ReadCollarWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ReadCollarResponse, error)

ReadCollarWithResponse request returning *ReadCollarResponse

func (*ClientWithResponses) ReadOwnerWithResponse

func (c *ClientWithResponses) ReadOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadOwnerResponse, error)

ReadOwnerWithResponse request returning *ReadOwnerResponse

func (*ClientWithResponses) ReadPetCollarWithResponse

func (c *ClientWithResponses) ReadPetCollarWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetCollarResponse, error)

ReadPetCollarWithResponse request returning *ReadPetCollarResponse

func (*ClientWithResponses) ReadPetOwnerWithResponse

func (c *ClientWithResponses) ReadPetOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetOwnerResponse, error)

ReadPetOwnerWithResponse request returning *ReadPetOwnerResponse

func (*ClientWithResponses) ReadPetWithResponse

func (c *ClientWithResponses) ReadPetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetResponse, error)

ReadPetWithResponse request returning *ReadPetResponse

func (*ClientWithResponses) UpdateCategoryWithBodyWithResponse

func (c *ClientWithResponses) UpdateCategoryWithBodyWithResponse(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)

UpdateCategoryWithBodyWithResponse request with arbitrary body returning *UpdateCategoryResponse

func (*ClientWithResponses) UpdateCategoryWithResponse

func (c *ClientWithResponses) UpdateCategoryWithResponse(ctx context.Context, id int64, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)

func (*ClientWithResponses) UpdateCollarWithBodyWithResponse

func (c *ClientWithResponses) UpdateCollarWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCollarResponse, error)

UpdateCollarWithBodyWithResponse request with arbitrary body returning *UpdateCollarResponse

func (*ClientWithResponses) UpdateCollarWithResponse

func (c *ClientWithResponses) UpdateCollarWithResponse(ctx context.Context, id int32, body UpdateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCollarResponse, error)

func (*ClientWithResponses) UpdateOwnerWithBodyWithResponse

func (c *ClientWithResponses) UpdateOwnerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOwnerResponse, error)

UpdateOwnerWithBodyWithResponse request with arbitrary body returning *UpdateOwnerResponse

func (*ClientWithResponses) UpdateOwnerWithResponse

func (c *ClientWithResponses) UpdateOwnerWithResponse(ctx context.Context, id string, body UpdateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOwnerResponse, error)

func (*ClientWithResponses) UpdatePetWithBodyWithResponse

func (c *ClientWithResponses) UpdatePetWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePetResponse, error)

UpdatePetWithBodyWithResponse request with arbitrary body returning *UpdatePetResponse

func (*ClientWithResponses) UpdatePetWithResponse

func (c *ClientWithResponses) UpdatePetWithResponse(ctx context.Context, id string, body UpdatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePetResponse, error)

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// ListCategory request
	ListCategoryWithResponse(ctx context.Context, params *ListCategoryParams, reqEditors ...RequestEditorFn) (*ListCategoryResponse, error)

	// CreateCategory request with any body
	CreateCategoryWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCategoryResponse, error)

	CreateCategoryWithResponse(ctx context.Context, body CreateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCategoryResponse, error)

	// DeleteCategory request
	DeleteCategoryWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*DeleteCategoryResponse, error)

	// ReadCategory request
	ReadCategoryWithResponse(ctx context.Context, id int64, reqEditors ...RequestEditorFn) (*ReadCategoryResponse, error)

	// UpdateCategory request with any body
	UpdateCategoryWithBodyWithResponse(ctx context.Context, id int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)

	UpdateCategoryWithResponse(ctx context.Context, id int64, body UpdateCategoryJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCategoryResponse, error)

	// ListCategoryPets request
	ListCategoryPetsWithResponse(ctx context.Context, id int64, params *ListCategoryPetsParams, reqEditors ...RequestEditorFn) (*ListCategoryPetsResponse, error)

	// ListCollar request
	ListCollarWithResponse(ctx context.Context, params *ListCollarParams, reqEditors ...RequestEditorFn) (*ListCollarResponse, error)

	// CreateCollar request with any body
	CreateCollarWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateCollarResponse, error)

	CreateCollarWithResponse(ctx context.Context, body CreateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateCollarResponse, error)

	// DeleteCollar request
	DeleteCollarWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*DeleteCollarResponse, error)

	// ReadCollar request
	ReadCollarWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ReadCollarResponse, error)

	// UpdateCollar request with any body
	UpdateCollarWithBodyWithResponse(ctx context.Context, id int32, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateCollarResponse, error)

	UpdateCollarWithResponse(ctx context.Context, id int32, body UpdateCollarJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateCollarResponse, error)

	// ReadCollarPet request
	ReadCollarPetWithResponse(ctx context.Context, id int32, reqEditors ...RequestEditorFn) (*ReadCollarPetResponse, error)

	// ListOwner request
	ListOwnerWithResponse(ctx context.Context, params *ListOwnerParams, reqEditors ...RequestEditorFn) (*ListOwnerResponse, error)

	// CreateOwner request with any body
	CreateOwnerWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateOwnerResponse, error)

	CreateOwnerWithResponse(ctx context.Context, body CreateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateOwnerResponse, error)

	// DeleteOwner request
	DeleteOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeleteOwnerResponse, error)

	// ReadOwner request
	ReadOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadOwnerResponse, error)

	// UpdateOwner request with any body
	UpdateOwnerWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateOwnerResponse, error)

	UpdateOwnerWithResponse(ctx context.Context, id string, body UpdateOwnerJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateOwnerResponse, error)

	// ListOwnerPets request
	ListOwnerPetsWithResponse(ctx context.Context, id string, params *ListOwnerPetsParams, reqEditors ...RequestEditorFn) (*ListOwnerPetsResponse, error)

	// ListPet request
	ListPetWithResponse(ctx context.Context, params *ListPetParams, reqEditors ...RequestEditorFn) (*ListPetResponse, error)

	// CreatePet request with any body
	CreatePetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreatePetResponse, error)

	CreatePetWithResponse(ctx context.Context, body CreatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*CreatePetResponse, error)

	// DeletePet request
	DeletePetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*DeletePetResponse, error)

	// ReadPet request
	ReadPetWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetResponse, error)

	// UpdatePet request with any body
	UpdatePetWithBodyWithResponse(ctx context.Context, id string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePetResponse, error)

	UpdatePetWithResponse(ctx context.Context, id string, body UpdatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdatePetResponse, error)

	// ListPetCategories request
	ListPetCategoriesWithResponse(ctx context.Context, id string, params *ListPetCategoriesParams, reqEditors ...RequestEditorFn) (*ListPetCategoriesResponse, error)

	// ReadPetCollar request
	ReadPetCollarWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetCollarResponse, error)

	// ListPetFriends request
	ListPetFriendsWithResponse(ctx context.Context, id string, params *ListPetFriendsParams, reqEditors ...RequestEditorFn) (*ListPetFriendsResponse, error)

	// ReadPetOwner request
	ReadPetOwnerWithResponse(ctx context.Context, id string, reqEditors ...RequestEditorFn) (*ReadPetOwnerResponse, error)
}

ClientWithResponsesInterface is the interface specification for the client with responses above.

type Collar1522160880View

type Collar1522160880View struct {
	Color string `json:"color"`
	Id    int32  `json:"id"`
}

Collar1522160880View defines model for Collar1522160880View.

type CreateCategoryJSONBody

type CreateCategoryJSONBody struct {
	Name string    `json:"name"`
	Pets *[]string `json:"pets,omitempty"`
}

CreateCategoryJSONBody defines parameters for CreateCategory.

type CreateCategoryJSONRequestBody

type CreateCategoryJSONRequestBody = CreateCategoryJSONBody

CreateCategoryJSONRequestBody defines body for CreateCategory for application/json ContentType.

type CreateCategoryResponse

type CreateCategoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Category4094953247View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseCreateCategoryResponse

func ParseCreateCategoryResponse(rsp *http.Response) (*CreateCategoryResponse, error)

ParseCreateCategoryResponse parses an HTTP response from a CreateCategoryWithResponse call

func (CreateCategoryResponse) Status

func (r CreateCategoryResponse) Status() string

Status returns HTTPResponse.Status

func (CreateCategoryResponse) StatusCode

func (r CreateCategoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateCollarJSONBody

type CreateCollarJSONBody struct {
	Color string  `json:"color"`
	Pet   *string `json:"pet,omitempty"`
}

CreateCollarJSONBody defines parameters for CreateCollar.

type CreateCollarJSONRequestBody

type CreateCollarJSONRequestBody = CreateCollarJSONBody

CreateCollarJSONRequestBody defines body for CreateCollar for application/json ContentType.

type CreateCollarResponse

type CreateCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Collar1522160880View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseCreateCollarResponse

func ParseCreateCollarResponse(rsp *http.Response) (*CreateCollarResponse, error)

ParseCreateCollarResponse parses an HTTP response from a CreateCollarWithResponse call

func (CreateCollarResponse) Status

func (r CreateCollarResponse) Status() string

Status returns HTTPResponse.Status

func (CreateCollarResponse) StatusCode

func (r CreateCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateOwnerJSONBody

type CreateOwnerJSONBody struct {
	Age  int32     `json:"age"`
	Name string    `json:"name"`
	Pets *[]string `json:"pets,omitempty"`
}

CreateOwnerJSONBody defines parameters for CreateOwner.

type CreateOwnerJSONRequestBody

type CreateOwnerJSONRequestBody = CreateOwnerJSONBody

CreateOwnerJSONRequestBody defines body for CreateOwner for application/json ContentType.

type CreateOwnerResponse

type CreateOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Owner139708381View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseCreateOwnerResponse

func ParseCreateOwnerResponse(rsp *http.Response) (*CreateOwnerResponse, error)

ParseCreateOwnerResponse parses an HTTP response from a CreateOwnerWithResponse call

func (CreateOwnerResponse) Status

func (r CreateOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (CreateOwnerResponse) StatusCode

func (r CreateOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreatePetJSONBody

type CreatePetJSONBody struct {
	Age        int32     `json:"age"`
	Categories *[]int64  `json:"categories,omitempty"`
	Collar     *int32    `json:"collar,omitempty"`
	Friends    *[]string `json:"friends,omitempty"`
	Name       string    `json:"name"`
	Owner      *string   `json:"owner,omitempty"`
}

CreatePetJSONBody defines parameters for CreatePet.

type CreatePetJSONRequestBody

type CreatePetJSONRequestBody = CreatePetJSONBody

CreatePetJSONRequestBody defines body for CreatePet for application/json ContentType.

type CreatePetResponse

type CreatePetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseCreatePetResponse

func ParseCreatePetResponse(rsp *http.Response) (*CreatePetResponse, error)

ParseCreatePetResponse parses an HTTP response from a CreatePetWithResponse call

func (CreatePetResponse) Status

func (r CreatePetResponse) Status() string

Status returns HTTPResponse.Status

func (CreatePetResponse) StatusCode

func (r CreatePetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCategoryResponse

type DeleteCategoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseDeleteCategoryResponse

func ParseDeleteCategoryResponse(rsp *http.Response) (*DeleteCategoryResponse, error)

ParseDeleteCategoryResponse parses an HTTP response from a DeleteCategoryWithResponse call

func (DeleteCategoryResponse) Status

func (r DeleteCategoryResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteCategoryResponse) StatusCode

func (r DeleteCategoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteCollarResponse

type DeleteCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseDeleteCollarResponse

func ParseDeleteCollarResponse(rsp *http.Response) (*DeleteCollarResponse, error)

ParseDeleteCollarResponse parses an HTTP response from a DeleteCollarWithResponse call

func (DeleteCollarResponse) Status

func (r DeleteCollarResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteCollarResponse) StatusCode

func (r DeleteCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOwnerResponse

type DeleteOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseDeleteOwnerResponse

func ParseDeleteOwnerResponse(rsp *http.Response) (*DeleteOwnerResponse, error)

ParseDeleteOwnerResponse parses an HTTP response from a DeleteOwnerWithResponse call

func (DeleteOwnerResponse) Status

func (r DeleteOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteOwnerResponse) StatusCode

func (r DeleteOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePetResponse

type DeletePetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseDeletePetResponse

func ParseDeletePetResponse(rsp *http.Response) (*DeletePetResponse, error)

ParseDeletePetResponse parses an HTTP response from a DeletePetWithResponse call

func (DeletePetResponse) Status

func (r DeletePetResponse) Status() string

Status returns HTTPResponse.Status

func (DeletePetResponse) StatusCode

func (r DeletePetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type HttpRequestDoer

type HttpRequestDoer interface {
	Do(req *http.Request) (*http.Response, error)
}

Doer performs HTTP requests.

The standard http.Client implements this interface.

type ListCategoryParams

type ListCategoryParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListCategoryParams defines parameters for ListCategory.

type ListCategoryPetsParams

type ListCategoryPetsParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListCategoryPetsParams defines parameters for ListCategoryPets.

type ListCategoryPetsResponse

type ListCategoryPetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListCategoryPetsResponse

func ParseListCategoryPetsResponse(rsp *http.Response) (*ListCategoryPetsResponse, error)

ParseListCategoryPetsResponse parses an HTTP response from a ListCategoryPetsWithResponse call

func (ListCategoryPetsResponse) Status

func (r ListCategoryPetsResponse) Status() string

Status returns HTTPResponse.Status

func (ListCategoryPetsResponse) StatusCode

func (r ListCategoryPetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCategoryResponse

type ListCategoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Category4094953247View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListCategoryResponse

func ParseListCategoryResponse(rsp *http.Response) (*ListCategoryResponse, error)

ParseListCategoryResponse parses an HTTP response from a ListCategoryWithResponse call

func (ListCategoryResponse) Status

func (r ListCategoryResponse) Status() string

Status returns HTTPResponse.Status

func (ListCategoryResponse) StatusCode

func (r ListCategoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListCollarParams

type ListCollarParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListCollarParams defines parameters for ListCollar.

type ListCollarResponse

type ListCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Collar1522160880View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListCollarResponse

func ParseListCollarResponse(rsp *http.Response) (*ListCollarResponse, error)

ParseListCollarResponse parses an HTTP response from a ListCollarWithResponse call

func (ListCollarResponse) Status

func (r ListCollarResponse) Status() string

Status returns HTTPResponse.Status

func (ListCollarResponse) StatusCode

func (r ListCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOwnerParams

type ListOwnerParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListOwnerParams defines parameters for ListOwner.

type ListOwnerPetsParams

type ListOwnerPetsParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListOwnerPetsParams defines parameters for ListOwnerPets.

type ListOwnerPetsResponse

type ListOwnerPetsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListOwnerPetsResponse

func ParseListOwnerPetsResponse(rsp *http.Response) (*ListOwnerPetsResponse, error)

ParseListOwnerPetsResponse parses an HTTP response from a ListOwnerPetsWithResponse call

func (ListOwnerPetsResponse) Status

func (r ListOwnerPetsResponse) Status() string

Status returns HTTPResponse.Status

func (ListOwnerPetsResponse) StatusCode

func (r ListOwnerPetsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListOwnerResponse

type ListOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Owner139708381View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListOwnerResponse

func ParseListOwnerResponse(rsp *http.Response) (*ListOwnerResponse, error)

ParseListOwnerResponse parses an HTTP response from a ListOwnerWithResponse call

func (ListOwnerResponse) Status

func (r ListOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (ListOwnerResponse) StatusCode

func (r ListOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPetCategoriesParams

type ListPetCategoriesParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListPetCategoriesParams defines parameters for ListPetCategories.

type ListPetCategoriesResponse

type ListPetCategoriesResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Category4094953247View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListPetCategoriesResponse

func ParseListPetCategoriesResponse(rsp *http.Response) (*ListPetCategoriesResponse, error)

ParseListPetCategoriesResponse parses an HTTP response from a ListPetCategoriesWithResponse call

func (ListPetCategoriesResponse) Status

func (r ListPetCategoriesResponse) Status() string

Status returns HTTPResponse.Status

func (ListPetCategoriesResponse) StatusCode

func (r ListPetCategoriesResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPetFriendsParams

type ListPetFriendsParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListPetFriendsParams defines parameters for ListPetFriends.

type ListPetFriendsResponse

type ListPetFriendsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListPetFriendsResponse

func ParseListPetFriendsResponse(rsp *http.Response) (*ListPetFriendsResponse, error)

ParseListPetFriendsResponse parses an HTTP response from a ListPetFriendsWithResponse call

func (ListPetFriendsResponse) Status

func (r ListPetFriendsResponse) Status() string

Status returns HTTPResponse.Status

func (ListPetFriendsResponse) StatusCode

func (r ListPetFriendsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ListPetParams

type ListPetParams struct {
	// what page to render
	Page *int32 `json:"page,omitempty"`

	// item count to render per page
	ItemsPerPage *int32 `json:"itemsPerPage,omitempty"`
}

ListPetParams defines parameters for ListPet.

type ListPetResponse

type ListPetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseListPetResponse

func ParseListPetResponse(rsp *http.Response) (*ListPetResponse, error)

ParseListPetResponse parses an HTTP response from a ListPetWithResponse call

func (ListPetResponse) Status

func (r ListPetResponse) Status() string

Status returns HTTPResponse.Status

func (ListPetResponse) StatusCode

func (r ListPetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type N400

type N400 struct {
	Code   *int32                  `json:"code,omitempty"`
	Errors *map[string]interface{} `json:"errors,omitempty"`
	Status *string                 `json:"status,omitempty"`
}

N400 defines model for 400.

type N404

type N404 struct {
	Code   *int32                  `json:"code,omitempty"`
	Errors *map[string]interface{} `json:"errors,omitempty"`
	Status *string                 `json:"status,omitempty"`
}

N404 defines model for 404.

type N500

type N500 struct {
	Code   *int32                  `json:"code,omitempty"`
	Errors *map[string]interface{} `json:"errors,omitempty"`
	Status *string                 `json:"status,omitempty"`
}

N500 defines model for 500.

type Owner139708381View

type Owner139708381View struct {
	Age  int32  `json:"age"`
	Id   string `json:"id"`
	Name string `json:"name"`
}

Owner139708381View defines model for Owner139708381View.

type Pet1876743790View

type Pet1876743790View struct {
	Age     int32               `json:"age"`
	Friends *[]Pet359800019View `json:"friends,omitempty"`
	Id      string              `json:"id"`
	Name    string              `json:"name"`
	Owner   *Owner139708381View `json:"owner,omitempty"`
}

Pet1876743790View defines model for Pet1876743790View.

type Pet359800019View

type Pet359800019View struct {
	Age  int32  `json:"age"`
	Id   string `json:"id"`
	Name string `json:"name"`
}

Pet359800019View defines model for Pet359800019View.

type ReadCategoryResponse

type ReadCategoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Category4094953247View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadCategoryResponse

func ParseReadCategoryResponse(rsp *http.Response) (*ReadCategoryResponse, error)

ParseReadCategoryResponse parses an HTTP response from a ReadCategoryWithResponse call

func (ReadCategoryResponse) Status

func (r ReadCategoryResponse) Status() string

Status returns HTTPResponse.Status

func (ReadCategoryResponse) StatusCode

func (r ReadCategoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadCollarPetResponse

type ReadCollarPetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Pet1876743790View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadCollarPetResponse

func ParseReadCollarPetResponse(rsp *http.Response) (*ReadCollarPetResponse, error)

ParseReadCollarPetResponse parses an HTTP response from a ReadCollarPetWithResponse call

func (ReadCollarPetResponse) Status

func (r ReadCollarPetResponse) Status() string

Status returns HTTPResponse.Status

func (ReadCollarPetResponse) StatusCode

func (r ReadCollarPetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadCollarResponse

type ReadCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Collar1522160880View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadCollarResponse

func ParseReadCollarResponse(rsp *http.Response) (*ReadCollarResponse, error)

ParseReadCollarResponse parses an HTTP response from a ReadCollarWithResponse call

func (ReadCollarResponse) Status

func (r ReadCollarResponse) Status() string

Status returns HTTPResponse.Status

func (ReadCollarResponse) StatusCode

func (r ReadCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadOwnerResponse

type ReadOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Owner139708381View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadOwnerResponse

func ParseReadOwnerResponse(rsp *http.Response) (*ReadOwnerResponse, error)

ParseReadOwnerResponse parses an HTTP response from a ReadOwnerWithResponse call

func (ReadOwnerResponse) Status

func (r ReadOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (ReadOwnerResponse) StatusCode

func (r ReadOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadPetCollarResponse

type ReadPetCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Collar1522160880View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadPetCollarResponse

func ParseReadPetCollarResponse(rsp *http.Response) (*ReadPetCollarResponse, error)

ParseReadPetCollarResponse parses an HTTP response from a ReadPetCollarWithResponse call

func (ReadPetCollarResponse) Status

func (r ReadPetCollarResponse) Status() string

Status returns HTTPResponse.Status

func (ReadPetCollarResponse) StatusCode

func (r ReadPetCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadPetOwnerResponse

type ReadPetOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Owner139708381View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadPetOwnerResponse

func ParseReadPetOwnerResponse(rsp *http.Response) (*ReadPetOwnerResponse, error)

ParseReadPetOwnerResponse parses an HTTP response from a ReadPetOwnerWithResponse call

func (ReadPetOwnerResponse) Status

func (r ReadPetOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (ReadPetOwnerResponse) StatusCode

func (r ReadPetOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ReadPetResponse

type ReadPetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Pet1876743790View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseReadPetResponse

func ParseReadPetResponse(rsp *http.Response) (*ReadPetResponse, error)

ParseReadPetResponse parses an HTTP response from a ReadPetWithResponse call

func (ReadPetResponse) Status

func (r ReadPetResponse) Status() string

Status returns HTTPResponse.Status

func (ReadPetResponse) StatusCode

func (r ReadPetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type RequestEditorFn

type RequestEditorFn func(ctx context.Context, req *http.Request) error

RequestEditorFn is the function signature for the RequestEditor callback function

type UpdateCategoryJSONBody

type UpdateCategoryJSONBody struct {
	Name string    `json:"name"`
	Pets *[]string `json:"pets,omitempty"`
}

UpdateCategoryJSONBody defines parameters for UpdateCategory.

type UpdateCategoryJSONRequestBody

type UpdateCategoryJSONRequestBody = UpdateCategoryJSONBody

UpdateCategoryJSONRequestBody defines body for UpdateCategory for application/json ContentType.

type UpdateCategoryResponse

type UpdateCategoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Category4094953247View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseUpdateCategoryResponse

func ParseUpdateCategoryResponse(rsp *http.Response) (*UpdateCategoryResponse, error)

ParseUpdateCategoryResponse parses an HTTP response from a UpdateCategoryWithResponse call

func (UpdateCategoryResponse) Status

func (r UpdateCategoryResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateCategoryResponse) StatusCode

func (r UpdateCategoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateCollarJSONBody

type UpdateCollarJSONBody struct {
	Color string  `json:"color"`
	Pet   *string `json:"pet,omitempty"`
}

UpdateCollarJSONBody defines parameters for UpdateCollar.

type UpdateCollarJSONRequestBody

type UpdateCollarJSONRequestBody = UpdateCollarJSONBody

UpdateCollarJSONRequestBody defines body for UpdateCollar for application/json ContentType.

type UpdateCollarResponse

type UpdateCollarResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Collar1522160880View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseUpdateCollarResponse

func ParseUpdateCollarResponse(rsp *http.Response) (*UpdateCollarResponse, error)

ParseUpdateCollarResponse parses an HTTP response from a UpdateCollarWithResponse call

func (UpdateCollarResponse) Status

func (r UpdateCollarResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateCollarResponse) StatusCode

func (r UpdateCollarResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateOwnerJSONBody

type UpdateOwnerJSONBody struct {
	Age  int32     `json:"age"`
	Name string    `json:"name"`
	Pets *[]string `json:"pets,omitempty"`
}

UpdateOwnerJSONBody defines parameters for UpdateOwner.

type UpdateOwnerJSONRequestBody

type UpdateOwnerJSONRequestBody = UpdateOwnerJSONBody

UpdateOwnerJSONRequestBody defines body for UpdateOwner for application/json ContentType.

type UpdateOwnerResponse

type UpdateOwnerResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Owner139708381View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseUpdateOwnerResponse

func ParseUpdateOwnerResponse(rsp *http.Response) (*UpdateOwnerResponse, error)

ParseUpdateOwnerResponse parses an HTTP response from a UpdateOwnerWithResponse call

func (UpdateOwnerResponse) Status

func (r UpdateOwnerResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateOwnerResponse) StatusCode

func (r UpdateOwnerResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdatePetJSONBody

type UpdatePetJSONBody struct {
	Age        int32     `json:"age"`
	Categories *[]int64  `json:"categories,omitempty"`
	Collar     *int32    `json:"collar,omitempty"`
	Friends    *[]string `json:"friends,omitempty"`
	Name       string    `json:"name"`
	Owner      *string   `json:"owner,omitempty"`
}

UpdatePetJSONBody defines parameters for UpdatePet.

type UpdatePetJSONRequestBody

type UpdatePetJSONRequestBody = UpdatePetJSONBody

UpdatePetJSONRequestBody defines body for UpdatePet for application/json ContentType.

type UpdatePetResponse

type UpdatePetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Pet359800019View
	JSON400      *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON404 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
	JSON500 *struct {
		Code   *int32                  `json:"code,omitempty"`
		Errors *map[string]interface{} `json:"errors,omitempty"`
		Status *string                 `json:"status,omitempty"`
	}
}

func ParseUpdatePetResponse

func ParseUpdatePetResponse(rsp *http.Response) (*UpdatePetResponse, error)

ParseUpdatePetResponse parses an HTTP response from a UpdatePetWithResponse call

func (UpdatePetResponse) Status

func (r UpdatePetResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePetResponse) StatusCode

func (r UpdatePetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

Jump to

Keyboard shortcuts

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