petstore

package
v0.0.0-...-fbc3267 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2023 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Overview

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

Code generated by github.com/deepmap/oapi-codegen version v1.13.0 DO NOT EDIT.

Index

Constants

View Source
const (
	Api_keyScopes       = "api_key.Scopes"
	Petstore_authScopes = "petstore_auth.Scopes"
)

Variables

This section is empty.

Functions

func NewAddPetRequest

func NewAddPetRequest(server string, body AddPetJSONRequestBody) (*http.Request, error)

NewAddPetRequest calls the generic AddPet builder with application/json body

func NewAddPetRequestWithBody

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

NewAddPetRequestWithBody generates requests for AddPet with any type of body

func NewCreateUserRequest

func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)

NewCreateUserRequest calls the generic CreateUser builder with application/json body

func NewCreateUserRequestWithBody

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

NewCreateUserRequestWithBody generates requests for CreateUser with any type of body

func NewCreateUsersWithArrayInputRequest

func NewCreateUsersWithArrayInputRequest(server string, body CreateUsersWithArrayInputJSONRequestBody) (*http.Request, error)

NewCreateUsersWithArrayInputRequest calls the generic CreateUsersWithArrayInput builder with application/json body

func NewCreateUsersWithArrayInputRequestWithBody

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

NewCreateUsersWithArrayInputRequestWithBody generates requests for CreateUsersWithArrayInput with any type of body

func NewCreateUsersWithListInputRequest

func NewCreateUsersWithListInputRequest(server string, body CreateUsersWithListInputJSONRequestBody) (*http.Request, error)

NewCreateUsersWithListInputRequest calls the generic CreateUsersWithListInput builder with application/json body

func NewCreateUsersWithListInputRequestWithBody

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

NewCreateUsersWithListInputRequestWithBody generates requests for CreateUsersWithListInput with any type of body

func NewDeleteOrderRequest

func NewDeleteOrderRequest(server string, orderId int64) (*http.Request, error)

NewDeleteOrderRequest generates requests for DeleteOrder

func NewDeletePetRequest

func NewDeletePetRequest(server string, petId int64, params *DeletePetParams) (*http.Request, error)

NewDeletePetRequest generates requests for DeletePet

func NewDeleteUserRequest

func NewDeleteUserRequest(server string, username string) (*http.Request, error)

NewDeleteUserRequest generates requests for DeleteUser

func NewFindPetsByStatusRequest

func NewFindPetsByStatusRequest(server string, params *FindPetsByStatusParams) (*http.Request, error)

NewFindPetsByStatusRequest generates requests for FindPetsByStatus

func NewFindPetsByTagsRequest

func NewFindPetsByTagsRequest(server string, params *FindPetsByTagsParams) (*http.Request, error)

NewFindPetsByTagsRequest generates requests for FindPetsByTags

func NewGetInventoryRequest

func NewGetInventoryRequest(server string) (*http.Request, error)

NewGetInventoryRequest generates requests for GetInventory

func NewGetOrderByIdRequest

func NewGetOrderByIdRequest(server string, orderId int64) (*http.Request, error)

NewGetOrderByIdRequest generates requests for GetOrderById

func NewGetPetByIdRequest

func NewGetPetByIdRequest(server string, petId int64) (*http.Request, error)

NewGetPetByIdRequest generates requests for GetPetById

func NewGetUserByNameRequest

func NewGetUserByNameRequest(server string, username string) (*http.Request, error)

NewGetUserByNameRequest generates requests for GetUserByName

func NewLoginUserRequest

func NewLoginUserRequest(server string, params *LoginUserParams) (*http.Request, error)

NewLoginUserRequest generates requests for LoginUser

func NewLogoutUserRequest

func NewLogoutUserRequest(server string) (*http.Request, error)

NewLogoutUserRequest generates requests for LogoutUser

func NewPlaceOrderRequest

func NewPlaceOrderRequest(server string, body PlaceOrderJSONRequestBody) (*http.Request, error)

NewPlaceOrderRequest calls the generic PlaceOrder builder with application/json body

func NewPlaceOrderRequestWithBody

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

NewPlaceOrderRequestWithBody generates requests for PlaceOrder with any type of body

func NewUpdatePetRequest

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

NewUpdatePetRequest calls the generic UpdatePet builder with application/json body

func NewUpdatePetRequestWithBody

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

NewUpdatePetRequestWithBody generates requests for UpdatePet with any type of body

func NewUpdatePetWithFormRequestWithBody

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

NewUpdatePetWithFormRequestWithBody generates requests for UpdatePetWithForm with any type of body

func NewUpdatePetWithFormRequestWithFormdataBody

func NewUpdatePetWithFormRequestWithFormdataBody(server string, petId int64, body UpdatePetWithFormFormdataRequestBody) (*http.Request, error)

NewUpdatePetWithFormRequestWithFormdataBody calls the generic UpdatePetWithForm builder with application/x-www-form-urlencoded body

func NewUpdateUserRequest

func NewUpdateUserRequest(server string, username string, body UpdateUserJSONRequestBody) (*http.Request, error)

NewUpdateUserRequest calls the generic UpdateUser builder with application/json body

func NewUpdateUserRequestWithBody

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

NewUpdateUserRequestWithBody generates requests for UpdateUser with any type of body

func NewUploadFileRequestWithBody

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

NewUploadFileRequestWithBody generates requests for UploadFile with any type of body

Types

type AddPetJSONRequestBody

type AddPetJSONRequestBody = Pet

AddPetJSONRequestBody defines body for AddPet for application/json ContentType.

type AddPetResponse

type AddPetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseAddPetResponse

func ParseAddPetResponse(rsp *http.Response) (*AddPetResponse, error)

ParseAddPetResponse parses an HTTP response from a AddPetWithResponse call

func (AddPetResponse) Status

func (r AddPetResponse) Status() string

Status returns HTTPResponse.Status

func (AddPetResponse) StatusCode

func (r AddPetResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type ApiResponse

type ApiResponse struct {
	Code    *int32  `json:"code,omitempty"`
	Message *string `json:"message,omitempty"`
	Type    *string `json:"type,omitempty"`
}

ApiResponse defines model for ApiResponse.

type Category

type Category struct {
	Id   *int64  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Category defines model for Category.

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) AddPet

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

func (*Client) AddPetWithBody

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

func (*Client) CreateUser

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

func (*Client) CreateUserWithBody

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

func (*Client) CreateUsersWithArrayInput

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

func (*Client) CreateUsersWithArrayInputWithBody

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

func (*Client) CreateUsersWithListInput

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

func (*Client) CreateUsersWithListInputWithBody

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

func (*Client) DeleteOrder

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

func (*Client) DeletePet

func (c *Client) DeletePet(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) DeleteUser

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

func (*Client) FindPetsByStatus

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

func (*Client) FindPetsByTags

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

func (*Client) GetInventory

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

func (*Client) GetOrderById

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

func (*Client) GetPetById

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

func (*Client) GetUserByName

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

func (*Client) LoginUser

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

func (*Client) LogoutUser

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

func (*Client) PlaceOrder

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

func (*Client) PlaceOrderWithBody

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

func (*Client) UpdatePet

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

func (*Client) UpdatePetWithBody

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

func (*Client) UpdatePetWithFormWithBody

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

func (*Client) UpdatePetWithFormWithFormdataBody

func (c *Client) UpdatePetWithFormWithFormdataBody(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUser

func (c *Client) UpdateUser(ctx context.Context, username string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

func (*Client) UpdateUserWithBody

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

func (*Client) UploadFileWithBody

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

type ClientInterface

type ClientInterface interface {
	// AddPet request with any body
	AddPetWithBody(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	AddPet(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

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

	// DeletePet request
	DeletePet(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// UpdatePetWithForm request with any body
	UpdatePetWithFormWithBody(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	UpdatePetWithFormWithFormdataBody(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

	// UploadFile request with any body
	UploadFileWithBody(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*http.Response, error)

	// GetInventory request
	GetInventory(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	PlaceOrder(ctx context.Context, body PlaceOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateUsersWithArrayInput(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	CreateUsersWithListInput(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)

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

	// LogoutUser request
	LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)

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

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

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

	UpdateUser(ctx context.Context, username string, body UpdateUserJSONRequestBody, 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) AddPetWithBodyWithResponse

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

AddPetWithBodyWithResponse request with arbitrary body returning *AddPetResponse

func (*ClientWithResponses) AddPetWithResponse

func (c *ClientWithResponses) AddPetWithResponse(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPetResponse, error)

func (*ClientWithResponses) CreateUserWithBodyWithResponse

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

CreateUserWithBodyWithResponse request with arbitrary body returning *CreateUserResponse

func (*ClientWithResponses) CreateUserWithResponse

func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

func (*ClientWithResponses) CreateUsersWithArrayInputWithBodyWithResponse

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

CreateUsersWithArrayInputWithBodyWithResponse request with arbitrary body returning *CreateUsersWithArrayInputResponse

func (*ClientWithResponses) CreateUsersWithArrayInputWithResponse

func (c *ClientWithResponses) CreateUsersWithArrayInputWithResponse(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUsersWithArrayInputResponse, error)

func (*ClientWithResponses) CreateUsersWithListInputWithBodyWithResponse

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

CreateUsersWithListInputWithBodyWithResponse request with arbitrary body returning *CreateUsersWithListInputResponse

func (*ClientWithResponses) CreateUsersWithListInputWithResponse

func (c *ClientWithResponses) CreateUsersWithListInputWithResponse(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUsersWithListInputResponse, error)

func (*ClientWithResponses) DeleteOrderWithResponse

func (c *ClientWithResponses) DeleteOrderWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*DeleteOrderResponse, error)

DeleteOrderWithResponse request returning *DeleteOrderResponse

func (*ClientWithResponses) DeletePetWithResponse

func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*DeletePetResponse, error)

DeletePetWithResponse request returning *DeletePetResponse

func (*ClientWithResponses) DeleteUserWithResponse

func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

DeleteUserWithResponse request returning *DeleteUserResponse

func (*ClientWithResponses) FindPetsByStatusWithResponse

func (c *ClientWithResponses) FindPetsByStatusWithResponse(ctx context.Context, params *FindPetsByStatusParams, reqEditors ...RequestEditorFn) (*FindPetsByStatusResponse, error)

FindPetsByStatusWithResponse request returning *FindPetsByStatusResponse

func (*ClientWithResponses) FindPetsByTagsWithResponse

func (c *ClientWithResponses) FindPetsByTagsWithResponse(ctx context.Context, params *FindPetsByTagsParams, reqEditors ...RequestEditorFn) (*FindPetsByTagsResponse, error)

FindPetsByTagsWithResponse request returning *FindPetsByTagsResponse

func (*ClientWithResponses) GetInventoryWithResponse

func (c *ClientWithResponses) GetInventoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInventoryResponse, error)

GetInventoryWithResponse request returning *GetInventoryResponse

func (*ClientWithResponses) GetOrderByIdWithResponse

func (c *ClientWithResponses) GetOrderByIdWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*GetOrderByIdResponse, error)

GetOrderByIdWithResponse request returning *GetOrderByIdResponse

func (*ClientWithResponses) GetPetByIdWithResponse

func (c *ClientWithResponses) GetPetByIdWithResponse(ctx context.Context, petId int64, reqEditors ...RequestEditorFn) (*GetPetByIdResponse, error)

GetPetByIdWithResponse request returning *GetPetByIdResponse

func (*ClientWithResponses) GetUserByNameWithResponse

func (c *ClientWithResponses) GetUserByNameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetUserByNameResponse, error)

GetUserByNameWithResponse request returning *GetUserByNameResponse

func (*ClientWithResponses) LoginUserWithResponse

func (c *ClientWithResponses) LoginUserWithResponse(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*LoginUserResponse, error)

LoginUserWithResponse request returning *LoginUserResponse

func (*ClientWithResponses) LogoutUserWithResponse

func (c *ClientWithResponses) LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error)

LogoutUserWithResponse request returning *LogoutUserResponse

func (*ClientWithResponses) PlaceOrderWithBodyWithResponse

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

PlaceOrderWithBodyWithResponse request with arbitrary body returning *PlaceOrderResponse

func (*ClientWithResponses) PlaceOrderWithResponse

func (c *ClientWithResponses) PlaceOrderWithResponse(ctx context.Context, body PlaceOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*PlaceOrderResponse, error)

func (*ClientWithResponses) UpdatePetWithBodyWithResponse

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

UpdatePetWithBodyWithResponse request with arbitrary body returning *UpdatePetResponse

func (*ClientWithResponses) UpdatePetWithFormWithBodyWithResponse

func (c *ClientWithResponses) UpdatePetWithFormWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePetWithFormResponse, error)

UpdatePetWithFormWithBodyWithResponse request with arbitrary body returning *UpdatePetWithFormResponse

func (*ClientWithResponses) UpdatePetWithFormWithFormdataBodyWithResponse

func (c *ClientWithResponses) UpdatePetWithFormWithFormdataBodyWithResponse(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*UpdatePetWithFormResponse, error)

func (*ClientWithResponses) UpdatePetWithResponse

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

func (*ClientWithResponses) UpdateUserWithBodyWithResponse

func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, username string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

UpdateUserWithBodyWithResponse request with arbitrary body returning *UpdateUserResponse

func (*ClientWithResponses) UpdateUserWithResponse

func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, username string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

func (*ClientWithResponses) UploadFileWithBodyWithResponse

func (c *ClientWithResponses) UploadFileWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadFileResponse, error)

UploadFileWithBodyWithResponse request with arbitrary body returning *UploadFileResponse

type ClientWithResponsesInterface

type ClientWithResponsesInterface interface {
	// AddPet request with any body
	AddPetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*AddPetResponse, error)

	AddPetWithResponse(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPetResponse, error)

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

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

	// FindPetsByStatus request
	FindPetsByStatusWithResponse(ctx context.Context, params *FindPetsByStatusParams, reqEditors ...RequestEditorFn) (*FindPetsByStatusResponse, error)

	// FindPetsByTags request
	FindPetsByTagsWithResponse(ctx context.Context, params *FindPetsByTagsParams, reqEditors ...RequestEditorFn) (*FindPetsByTagsResponse, error)

	// DeletePet request
	DeletePetWithResponse(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*DeletePetResponse, error)

	// GetPetById request
	GetPetByIdWithResponse(ctx context.Context, petId int64, reqEditors ...RequestEditorFn) (*GetPetByIdResponse, error)

	// UpdatePetWithForm request with any body
	UpdatePetWithFormWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdatePetWithFormResponse, error)

	UpdatePetWithFormWithFormdataBodyWithResponse(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, reqEditors ...RequestEditorFn) (*UpdatePetWithFormResponse, error)

	// UploadFile request with any body
	UploadFileWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadFileResponse, error)

	// GetInventory request
	GetInventoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInventoryResponse, error)

	// PlaceOrder request with any body
	PlaceOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*PlaceOrderResponse, error)

	PlaceOrderWithResponse(ctx context.Context, body PlaceOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*PlaceOrderResponse, error)

	// DeleteOrder request
	DeleteOrderWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*DeleteOrderResponse, error)

	// GetOrderById request
	GetOrderByIdWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*GetOrderByIdResponse, error)

	// CreateUser request with any body
	CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUserResponse, error)

	// CreateUsersWithArrayInput request with any body
	CreateUsersWithArrayInputWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUsersWithArrayInputResponse, error)

	CreateUsersWithArrayInputWithResponse(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUsersWithArrayInputResponse, error)

	// CreateUsersWithListInput request with any body
	CreateUsersWithListInputWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*CreateUsersWithListInputResponse, error)

	CreateUsersWithListInputWithResponse(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, reqEditors ...RequestEditorFn) (*CreateUsersWithListInputResponse, error)

	// LoginUser request
	LoginUserWithResponse(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*LoginUserResponse, error)

	// LogoutUser request
	LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error)

	// DeleteUser request
	DeleteUserWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)

	// GetUserByName request
	GetUserByNameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetUserByNameResponse, error)

	// UpdateUser request with any body
	UpdateUserWithBodyWithResponse(ctx context.Context, username string, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)

	UpdateUserWithResponse(ctx context.Context, username string, body UpdateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*UpdateUserResponse, error)
}

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

type CreateUserJSONRequestBody

type CreateUserJSONRequestBody = User

CreateUserJSONRequestBody defines body for CreateUser for application/json ContentType.

type CreateUserResponse

type CreateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateUserResponse

func ParseCreateUserResponse(rsp *http.Response) (*CreateUserResponse, error)

ParseCreateUserResponse parses an HTTP response from a CreateUserWithResponse call

func (CreateUserResponse) Status

func (r CreateUserResponse) Status() string

Status returns HTTPResponse.Status

func (CreateUserResponse) StatusCode

func (r CreateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUsersWithArrayInputJSONBody

type CreateUsersWithArrayInputJSONBody = []User

CreateUsersWithArrayInputJSONBody defines parameters for CreateUsersWithArrayInput.

type CreateUsersWithArrayInputJSONRequestBody

type CreateUsersWithArrayInputJSONRequestBody = CreateUsersWithArrayInputJSONBody

CreateUsersWithArrayInputJSONRequestBody defines body for CreateUsersWithArrayInput for application/json ContentType.

type CreateUsersWithArrayInputResponse

type CreateUsersWithArrayInputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateUsersWithArrayInputResponse

func ParseCreateUsersWithArrayInputResponse(rsp *http.Response) (*CreateUsersWithArrayInputResponse, error)

ParseCreateUsersWithArrayInputResponse parses an HTTP response from a CreateUsersWithArrayInputWithResponse call

func (CreateUsersWithArrayInputResponse) Status

Status returns HTTPResponse.Status

func (CreateUsersWithArrayInputResponse) StatusCode

func (r CreateUsersWithArrayInputResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type CreateUsersWithListInputJSONBody

type CreateUsersWithListInputJSONBody = []User

CreateUsersWithListInputJSONBody defines parameters for CreateUsersWithListInput.

type CreateUsersWithListInputJSONRequestBody

type CreateUsersWithListInputJSONRequestBody = CreateUsersWithListInputJSONBody

CreateUsersWithListInputJSONRequestBody defines body for CreateUsersWithListInput for application/json ContentType.

type CreateUsersWithListInputResponse

type CreateUsersWithListInputResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseCreateUsersWithListInputResponse

func ParseCreateUsersWithListInputResponse(rsp *http.Response) (*CreateUsersWithListInputResponse, error)

ParseCreateUsersWithListInputResponse parses an HTTP response from a CreateUsersWithListInputWithResponse call

func (CreateUsersWithListInputResponse) Status

Status returns HTTPResponse.Status

func (CreateUsersWithListInputResponse) StatusCode

func (r CreateUsersWithListInputResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeleteOrderResponse

type DeleteOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteOrderResponse

func ParseDeleteOrderResponse(rsp *http.Response) (*DeleteOrderResponse, error)

ParseDeleteOrderResponse parses an HTTP response from a DeleteOrderWithResponse call

func (DeleteOrderResponse) Status

func (r DeleteOrderResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteOrderResponse) StatusCode

func (r DeleteOrderResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type DeletePetParams

type DeletePetParams struct {
	ApiKey *string `json:"api_key,omitempty"`
}

DeletePetParams defines parameters for DeletePet.

type DeletePetResponse

type DeletePetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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 DeleteUserResponse

type DeleteUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseDeleteUserResponse

func ParseDeleteUserResponse(rsp *http.Response) (*DeleteUserResponse, error)

ParseDeleteUserResponse parses an HTTP response from a DeleteUserWithResponse call

func (DeleteUserResponse) Status

func (r DeleteUserResponse) Status() string

Status returns HTTPResponse.Status

func (DeleteUserResponse) StatusCode

func (r DeleteUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPetsByStatusParams

type FindPetsByStatusParams struct {
	// Status Status values that need to be considered for filter
	Status []FindPetsByStatusParamsStatus `form:"status" json:"status"`
}

FindPetsByStatusParams defines parameters for FindPetsByStatus.

type FindPetsByStatusParamsStatus

type FindPetsByStatusParamsStatus string

FindPetsByStatusParamsStatus defines parameters for FindPetsByStatus.

const (
	FindPetsByStatusParamsStatusAvailable FindPetsByStatusParamsStatus = "available"
	FindPetsByStatusParamsStatusPending   FindPetsByStatusParamsStatus = "pending"
	FindPetsByStatusParamsStatusSold      FindPetsByStatusParamsStatus = "sold"
)

Defines values for FindPetsByStatusParamsStatus.

type FindPetsByStatusResponse

type FindPetsByStatusResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet
	XML200       *[]Pet
}

func ParseFindPetsByStatusResponse

func ParseFindPetsByStatusResponse(rsp *http.Response) (*FindPetsByStatusResponse, error)

ParseFindPetsByStatusResponse parses an HTTP response from a FindPetsByStatusWithResponse call

func (FindPetsByStatusResponse) Status

func (r FindPetsByStatusResponse) Status() string

Status returns HTTPResponse.Status

func (FindPetsByStatusResponse) StatusCode

func (r FindPetsByStatusResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type FindPetsByTagsParams

type FindPetsByTagsParams struct {
	// Tags Tags to filter by
	Tags []string `form:"tags" json:"tags"`
}

FindPetsByTagsParams defines parameters for FindPetsByTags.

type FindPetsByTagsResponse

type FindPetsByTagsResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *[]Pet
	XML200       *[]Pet
}

func ParseFindPetsByTagsResponse

func ParseFindPetsByTagsResponse(rsp *http.Response) (*FindPetsByTagsResponse, error)

ParseFindPetsByTagsResponse parses an HTTP response from a FindPetsByTagsWithResponse call

func (FindPetsByTagsResponse) Status

func (r FindPetsByTagsResponse) Status() string

Status returns HTTPResponse.Status

func (FindPetsByTagsResponse) StatusCode

func (r FindPetsByTagsResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetInventoryResponse

type GetInventoryResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *map[string]int32
}

func ParseGetInventoryResponse

func ParseGetInventoryResponse(rsp *http.Response) (*GetInventoryResponse, error)

ParseGetInventoryResponse parses an HTTP response from a GetInventoryWithResponse call

func (GetInventoryResponse) Status

func (r GetInventoryResponse) Status() string

Status returns HTTPResponse.Status

func (GetInventoryResponse) StatusCode

func (r GetInventoryResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetOrderByIdResponse

type GetOrderByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Order
	XML200       *Order
}

func ParseGetOrderByIdResponse

func ParseGetOrderByIdResponse(rsp *http.Response) (*GetOrderByIdResponse, error)

ParseGetOrderByIdResponse parses an HTTP response from a GetOrderByIdWithResponse call

func (GetOrderByIdResponse) Status

func (r GetOrderByIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetOrderByIdResponse) StatusCode

func (r GetOrderByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetPetByIdResponse

type GetPetByIdResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Pet
	XML200       *Pet
}

func ParseGetPetByIdResponse

func ParseGetPetByIdResponse(rsp *http.Response) (*GetPetByIdResponse, error)

ParseGetPetByIdResponse parses an HTTP response from a GetPetByIdWithResponse call

func (GetPetByIdResponse) Status

func (r GetPetByIdResponse) Status() string

Status returns HTTPResponse.Status

func (GetPetByIdResponse) StatusCode

func (r GetPetByIdResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type GetUserByNameResponse

type GetUserByNameResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *User
	XML200       *User
}

func ParseGetUserByNameResponse

func ParseGetUserByNameResponse(rsp *http.Response) (*GetUserByNameResponse, error)

ParseGetUserByNameResponse parses an HTTP response from a GetUserByNameWithResponse call

func (GetUserByNameResponse) Status

func (r GetUserByNameResponse) Status() string

Status returns HTTPResponse.Status

func (GetUserByNameResponse) StatusCode

func (r GetUserByNameResponse) 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 LoginUserParams

type LoginUserParams struct {
	// Username The user name for login
	Username string `form:"username" json:"username"`

	// Password The password for login in clear text
	Password string `form:"password" json:"password"`
}

LoginUserParams defines parameters for LoginUser.

type LoginUserResponse

type LoginUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *string
	XML200       *string
}

func ParseLoginUserResponse

func ParseLoginUserResponse(rsp *http.Response) (*LoginUserResponse, error)

ParseLoginUserResponse parses an HTTP response from a LoginUserWithResponse call

func (LoginUserResponse) Status

func (r LoginUserResponse) Status() string

Status returns HTTPResponse.Status

func (LoginUserResponse) StatusCode

func (r LoginUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type LogoutUserResponse

type LogoutUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseLogoutUserResponse

func ParseLogoutUserResponse(rsp *http.Response) (*LogoutUserResponse, error)

ParseLogoutUserResponse parses an HTTP response from a LogoutUserWithResponse call

func (LogoutUserResponse) Status

func (r LogoutUserResponse) Status() string

Status returns HTTPResponse.Status

func (LogoutUserResponse) StatusCode

func (r LogoutUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type Order

type Order struct {
	Complete *bool      `json:"complete,omitempty"`
	Id       *int64     `json:"id,omitempty"`
	PetId    *int64     `json:"petId,omitempty"`
	Quantity *int32     `json:"quantity,omitempty"`
	ShipDate *time.Time `json:"shipDate,omitempty"`

	// Status Order Status
	Status *OrderStatus `json:"status,omitempty"`
}

Order defines model for Order.

type OrderStatus

type OrderStatus string

OrderStatus Order Status

const (
	Approved  OrderStatus = "approved"
	Delivered OrderStatus = "delivered"
	Placed    OrderStatus = "placed"
)

Defines values for OrderStatus.

type Pet

type Pet struct {
	Category  *Category `json:"category,omitempty"`
	Id        *int64    `json:"id,omitempty"`
	Name      string    `json:"name"`
	PhotoUrls []string  `json:"photoUrls"`

	// Status pet status in the store
	Status *PetStatus `json:"status,omitempty"`
	Tags   *[]Tag     `json:"tags,omitempty"`
}

Pet defines model for Pet.

type PetBody

type PetBody = Pet

PetBody defines model for PetBody.

type PetStatus

type PetStatus string

PetStatus pet status in the store

const (
	PetStatusAvailable PetStatus = "available"
	PetStatusPending   PetStatus = "pending"
	PetStatusSold      PetStatus = "sold"
)

Defines values for PetStatus.

type PlaceOrderJSONRequestBody

type PlaceOrderJSONRequestBody = Order

PlaceOrderJSONRequestBody defines body for PlaceOrder for application/json ContentType.

type PlaceOrderResponse

type PlaceOrderResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *Order
	XML200       *Order
}

func ParsePlaceOrderResponse

func ParsePlaceOrderResponse(rsp *http.Response) (*PlaceOrderResponse, error)

ParsePlaceOrderResponse parses an HTTP response from a PlaceOrderWithResponse call

func (PlaceOrderResponse) Status

func (r PlaceOrderResponse) Status() string

Status returns HTTPResponse.Status

func (PlaceOrderResponse) StatusCode

func (r PlaceOrderResponse) 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 Tag

type Tag struct {
	Id   *int64  `json:"id,omitempty"`
	Name *string `json:"name,omitempty"`
}

Tag defines model for Tag.

type UpdatePetJSONRequestBody

type UpdatePetJSONRequestBody = Pet

UpdatePetJSONRequestBody defines body for UpdatePet for application/json ContentType.

type UpdatePetResponse

type UpdatePetResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

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

type UpdatePetWithFormFormdataBody

type UpdatePetWithFormFormdataBody struct {
	// Name Updated name of the pet
	Name *string `form:"name,omitempty" json:"name,omitempty"`

	// Status Updated status of the pet
	Status *string `form:"status,omitempty" json:"status,omitempty"`
}

UpdatePetWithFormFormdataBody defines parameters for UpdatePetWithForm.

type UpdatePetWithFormFormdataRequestBody

type UpdatePetWithFormFormdataRequestBody UpdatePetWithFormFormdataBody

UpdatePetWithFormFormdataRequestBody defines body for UpdatePetWithForm for application/x-www-form-urlencoded ContentType.

type UpdatePetWithFormResponse

type UpdatePetWithFormResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdatePetWithFormResponse

func ParseUpdatePetWithFormResponse(rsp *http.Response) (*UpdatePetWithFormResponse, error)

ParseUpdatePetWithFormResponse parses an HTTP response from a UpdatePetWithFormWithResponse call

func (UpdatePetWithFormResponse) Status

func (r UpdatePetWithFormResponse) Status() string

Status returns HTTPResponse.Status

func (UpdatePetWithFormResponse) StatusCode

func (r UpdatePetWithFormResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UpdateUserJSONRequestBody

type UpdateUserJSONRequestBody = User

UpdateUserJSONRequestBody defines body for UpdateUser for application/json ContentType.

type UpdateUserResponse

type UpdateUserResponse struct {
	Body         []byte
	HTTPResponse *http.Response
}

func ParseUpdateUserResponse

func ParseUpdateUserResponse(rsp *http.Response) (*UpdateUserResponse, error)

ParseUpdateUserResponse parses an HTTP response from a UpdateUserWithResponse call

func (UpdateUserResponse) Status

func (r UpdateUserResponse) Status() string

Status returns HTTPResponse.Status

func (UpdateUserResponse) StatusCode

func (r UpdateUserResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type UploadFileMultipartBody

type UploadFileMultipartBody struct {
	// AdditionalMetadata Additional data to pass to server
	AdditionalMetadata *string `json:"additionalMetadata,omitempty"`

	// File file to upload
	File *openapi_types.File `json:"file,omitempty"`
}

UploadFileMultipartBody defines parameters for UploadFile.

type UploadFileMultipartRequestBody

type UploadFileMultipartRequestBody UploadFileMultipartBody

UploadFileMultipartRequestBody defines body for UploadFile for multipart/form-data ContentType.

type UploadFileResponse

type UploadFileResponse struct {
	Body         []byte
	HTTPResponse *http.Response
	JSON200      *ApiResponse
}

func ParseUploadFileResponse

func ParseUploadFileResponse(rsp *http.Response) (*UploadFileResponse, error)

ParseUploadFileResponse parses an HTTP response from a UploadFileWithResponse call

func (UploadFileResponse) Status

func (r UploadFileResponse) Status() string

Status returns HTTPResponse.Status

func (UploadFileResponse) StatusCode

func (r UploadFileResponse) StatusCode() int

StatusCode returns HTTPResponse.StatusCode

type User

type User struct {
	Email     *string `json:"email,omitempty"`
	FirstName *string `json:"firstName,omitempty"`
	Id        *int64  `json:"id,omitempty"`
	LastName  *string `json:"lastName,omitempty"`
	Password  *string `json:"password,omitempty"`
	Phone     *string `json:"phone,omitempty"`

	// UserStatus User Status
	UserStatus *int32  `json:"userStatus,omitempty"`
	Username   *string `json:"username,omitempty"`
}

User defines model for User.

type UserArray

type UserArray = []User

UserArray defines model for UserArray.

Jump to

Keyboard shortcuts

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