Documentation ¶
Overview ¶
Package client provides primitives to interact with the openapi HTTP API.
Code generated by github.com/oapi-codegen/oapi-codegen/v2 version v2.3.0 DO NOT EDIT.
Index ¶
- Constants
- func NewAddPetRequest(server string, body AddPetJSONRequestBody) (*http.Request, error)
- func NewAddPetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUserRequest(server string, body CreateUserJSONRequestBody) (*http.Request, error)
- func NewCreateUserRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUsersWithArrayInputRequest(server string, body CreateUsersWithArrayInputJSONRequestBody) (*http.Request, error)
- func NewCreateUsersWithArrayInputRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewCreateUsersWithListInputRequest(server string, body CreateUsersWithListInputJSONRequestBody) (*http.Request, error)
- func NewCreateUsersWithListInputRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewDeleteOrderRequest(server string, orderId int64) (*http.Request, error)
- func NewDeletePetRequest(server string, petId int64, params *DeletePetParams) (*http.Request, error)
- func NewDeleteUserRequest(server string, username string) (*http.Request, error)
- func NewFindPetsByStatusRequest(server string, params *FindPetsByStatusParams) (*http.Request, error)
- func NewFindPetsByTagsRequest(server string, params *FindPetsByTagsParams) (*http.Request, error)
- func NewGetInventoryRequest(server string) (*http.Request, error)
- func NewGetOrderByIdRequest(server string, orderId int64) (*http.Request, error)
- func NewGetPetByIdRequest(server string, petId int64) (*http.Request, error)
- func NewGetUserByNameRequest(server string, username string) (*http.Request, error)
- func NewLoginUserRequest(server string, params *LoginUserParams) (*http.Request, error)
- func NewLogoutUserRequest(server string) (*http.Request, error)
- func NewPlaceOrderRequest(server string, body PlaceOrderJSONRequestBody) (*http.Request, error)
- func NewPlaceOrderRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePetRequest(server string, body UpdatePetJSONRequestBody) (*http.Request, error)
- func NewUpdatePetRequestWithBody(server string, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePetWithFormRequestWithBody(server string, petId int64, contentType string, body io.Reader) (*http.Request, error)
- func NewUpdatePetWithFormRequestWithFormdataBody(server string, petId int64, body UpdatePetWithFormFormdataRequestBody) (*http.Request, error)
- func NewUpdateUserRequest(server string, username string, body UpdateUserJSONRequestBody) (*http.Request, error)
- func NewUpdateUserRequestWithBody(server string, username string, contentType string, body io.Reader) (*http.Request, error)
- func NewUploadFileRequestWithBody(server string, petId int64, contentType string, body io.Reader) (*http.Request, error)
- type AddPetJSONRequestBody
- type AddPetResponse
- type ApiResponse
- type Category
- type Client
- func (c *Client) AddPet(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) AddPetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUserWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUsersWithArrayInput(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUsersWithArrayInputWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) CreateUsersWithListInput(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) CreateUsersWithListInputWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) DeleteOrder(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) DeletePet(ctx context.Context, petId int64, params *DeletePetParams, ...) (*http.Response, error)
- func (c *Client) DeleteUser(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) FindPetsByStatus(ctx context.Context, params *FindPetsByStatusParams, ...) (*http.Response, error)
- func (c *Client) FindPetsByTags(ctx context.Context, params *FindPetsByTagsParams, ...) (*http.Response, error)
- func (c *Client) GetInventory(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetOrderById(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetPetById(ctx context.Context, petId int64, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) GetUserByName(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LoginUser(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) LogoutUser(ctx context.Context, reqEditors ...RequestEditorFn) (*http.Response, error)
- func (c *Client) PlaceOrder(ctx context.Context, body PlaceOrderJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) PlaceOrderWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePet(ctx context.Context, body UpdatePetJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdatePetWithBody(ctx context.Context, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePetWithFormWithBody(ctx context.Context, petId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UpdatePetWithFormWithFormdataBody(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateUser(ctx context.Context, username string, body UpdateUserJSONRequestBody, ...) (*http.Response, error)
- func (c *Client) UpdateUserWithBody(ctx context.Context, username string, contentType string, body io.Reader, ...) (*http.Response, error)
- func (c *Client) UploadFileWithBody(ctx context.Context, petId int64, contentType string, body io.Reader, ...) (*http.Response, error)
- type ClientInterface
- type ClientOption
- type ClientWithResponses
- func (c *ClientWithResponses) AddPetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*AddPetResponse, error)
- func (c *ClientWithResponses) AddPetWithResponse(ctx context.Context, body AddPetJSONRequestBody, reqEditors ...RequestEditorFn) (*AddPetResponse, error)
- func (c *ClientWithResponses) CreateUserWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUserWithResponse(ctx context.Context, body CreateUserJSONRequestBody, ...) (*CreateUserResponse, error)
- func (c *ClientWithResponses) CreateUsersWithArrayInputWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUsersWithArrayInputResponse, error)
- func (c *ClientWithResponses) CreateUsersWithArrayInputWithResponse(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, ...) (*CreateUsersWithArrayInputResponse, error)
- func (c *ClientWithResponses) CreateUsersWithListInputWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*CreateUsersWithListInputResponse, error)
- func (c *ClientWithResponses) CreateUsersWithListInputWithResponse(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, ...) (*CreateUsersWithListInputResponse, error)
- func (c *ClientWithResponses) DeleteOrderWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*DeleteOrderResponse, error)
- func (c *ClientWithResponses) DeletePetWithResponse(ctx context.Context, petId int64, params *DeletePetParams, ...) (*DeletePetResponse, error)
- func (c *ClientWithResponses) DeleteUserWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error)
- func (c *ClientWithResponses) FindPetsByStatusWithResponse(ctx context.Context, params *FindPetsByStatusParams, ...) (*FindPetsByStatusResponse, error)
- func (c *ClientWithResponses) FindPetsByTagsWithResponse(ctx context.Context, params *FindPetsByTagsParams, ...) (*FindPetsByTagsResponse, error)
- func (c *ClientWithResponses) GetInventoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInventoryResponse, error)
- func (c *ClientWithResponses) GetOrderByIdWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*GetOrderByIdResponse, error)
- func (c *ClientWithResponses) GetPetByIdWithResponse(ctx context.Context, petId int64, reqEditors ...RequestEditorFn) (*GetPetByIdResponse, error)
- func (c *ClientWithResponses) GetUserByNameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetUserByNameResponse, error)
- func (c *ClientWithResponses) LoginUserWithResponse(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*LoginUserResponse, error)
- func (c *ClientWithResponses) LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error)
- func (c *ClientWithResponses) PlaceOrderWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*PlaceOrderResponse, error)
- func (c *ClientWithResponses) PlaceOrderWithResponse(ctx context.Context, body PlaceOrderJSONRequestBody, ...) (*PlaceOrderResponse, error)
- func (c *ClientWithResponses) UpdatePetWithBodyWithResponse(ctx context.Context, contentType string, body io.Reader, ...) (*UpdatePetResponse, error)
- func (c *ClientWithResponses) UpdatePetWithFormWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, ...) (*UpdatePetWithFormResponse, error)
- func (c *ClientWithResponses) UpdatePetWithFormWithFormdataBodyWithResponse(ctx context.Context, petId int64, body UpdatePetWithFormFormdataRequestBody, ...) (*UpdatePetWithFormResponse, error)
- func (c *ClientWithResponses) UpdatePetWithResponse(ctx context.Context, body UpdatePetJSONRequestBody, ...) (*UpdatePetResponse, error)
- func (c *ClientWithResponses) UpdateUserWithBodyWithResponse(ctx context.Context, username string, contentType string, body io.Reader, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UpdateUserWithResponse(ctx context.Context, username string, body UpdateUserJSONRequestBody, ...) (*UpdateUserResponse, error)
- func (c *ClientWithResponses) UploadFileWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, ...) (*UploadFileResponse, error)
- type ClientWithResponsesInterface
- type CreateUserJSONRequestBody
- type CreateUserResponse
- type CreateUsersWithArrayInputJSONBody
- type CreateUsersWithArrayInputJSONRequestBody
- type CreateUsersWithArrayInputResponse
- type CreateUsersWithListInputJSONBody
- type CreateUsersWithListInputJSONRequestBody
- type CreateUsersWithListInputResponse
- type DeleteOrderResponse
- type DeletePetParams
- type DeletePetResponse
- type DeleteUserResponse
- type FindPetsByStatusParams
- type FindPetsByStatusParamsStatus
- type FindPetsByStatusResponse
- type FindPetsByTagsParams
- type FindPetsByTagsResponse
- type GetInventoryResponse
- type GetOrderByIdResponse
- type GetPetByIdResponse
- type GetUserByNameResponse
- type HttpRequestDoer
- type LoginUserParams
- type LoginUserResponse
- type LogoutUserResponse
- type Order
- type OrderStatus
- type Pet
- type PetStatus
- type PlaceOrderJSONRequestBody
- type PlaceOrderResponse
- type RequestEditorFn
- type Tag
- type UpdatePetJSONRequestBody
- type UpdatePetResponse
- type UpdatePetWithFormFormdataBody
- type UpdatePetWithFormFormdataRequestBody
- type UpdatePetWithFormResponse
- type UpdateUserJSONRequestBody
- type UpdateUserResponse
- type UploadFileMultipartBody
- type UploadFileMultipartRequestBody
- type UploadFileResponse
- type User
- type UserArray
Constants ¶
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 ¶
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 ¶
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 ¶
NewGetInventoryRequest generates requests for GetInventory
func NewGetOrderByIdRequest ¶
NewGetOrderByIdRequest generates requests for GetOrderById
func NewGetPetByIdRequest ¶
NewGetPetByIdRequest generates requests for GetPetById
func NewGetUserByNameRequest ¶
NewGetUserByNameRequest generates requests for GetUserByName
func NewLoginUserRequest ¶
func NewLoginUserRequest(server string, params *LoginUserParams) (*http.Request, error)
NewLoginUserRequest generates requests for LoginUser
func NewLogoutUserRequest ¶
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
Types ¶
type AddPetJSONRequestBody ¶
type AddPetJSONRequestBody = Pet
AddPetJSONRequestBody defines body for AddPet for application/json ContentType.
type AddPetResponse ¶
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 API responses with code
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 (*Client) CreateUser ¶
func (c *Client) CreateUser(ctx context.Context, body CreateUserJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateUserWithBody ¶
func (*Client) CreateUsersWithArrayInput ¶
func (c *Client) CreateUsersWithArrayInput(ctx context.Context, body CreateUsersWithArrayInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateUsersWithArrayInputWithBody ¶
func (*Client) CreateUsersWithListInput ¶
func (c *Client) CreateUsersWithListInput(ctx context.Context, body CreateUsersWithListInputJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) CreateUsersWithListInputWithBody ¶
func (*Client) DeleteOrder ¶
func (*Client) DeletePet ¶
func (c *Client) DeletePet(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) DeleteUser ¶
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 (*Client) GetOrderById ¶
func (*Client) GetPetById ¶
func (*Client) GetUserByName ¶
func (*Client) LoginUser ¶
func (c *Client) LoginUser(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) LogoutUser ¶
func (*Client) PlaceOrder ¶
func (c *Client) PlaceOrder(ctx context.Context, body PlaceOrderJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) PlaceOrderWithBody ¶
func (*Client) UpdatePet ¶
func (c *Client) UpdatePet(ctx context.Context, body UpdatePetJSONRequestBody, reqEditors ...RequestEditorFn) (*http.Response, error)
func (*Client) UpdatePetWithBody ¶
func (*Client) UpdatePetWithFormWithBody ¶
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 ¶
type ClientInterface ¶
type ClientInterface interface { // AddPetWithBody 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) // UpdatePetWithBody 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) // UpdatePetWithFormWithBody 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) // UploadFileWithBody 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) // PlaceOrderWithBody 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) // CreateUserWithBody 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) // CreateUsersWithArrayInputWithBody 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) // CreateUsersWithListInputWithBody 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) // UpdateUserWithBody 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 ¶
ClientOption allows setting custom parameters during construction
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 { // AddPetWithBodyWithResponse 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) // UpdatePetWithBodyWithResponse 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) // FindPetsByStatusWithResponse request FindPetsByStatusWithResponse(ctx context.Context, params *FindPetsByStatusParams, reqEditors ...RequestEditorFn) (*FindPetsByStatusResponse, error) // FindPetsByTagsWithResponse request FindPetsByTagsWithResponse(ctx context.Context, params *FindPetsByTagsParams, reqEditors ...RequestEditorFn) (*FindPetsByTagsResponse, error) // DeletePetWithResponse request DeletePetWithResponse(ctx context.Context, petId int64, params *DeletePetParams, reqEditors ...RequestEditorFn) (*DeletePetResponse, error) // GetPetByIdWithResponse request GetPetByIdWithResponse(ctx context.Context, petId int64, reqEditors ...RequestEditorFn) (*GetPetByIdResponse, error) // UpdatePetWithFormWithBodyWithResponse 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) // UploadFileWithBodyWithResponse request with any body UploadFileWithBodyWithResponse(ctx context.Context, petId int64, contentType string, body io.Reader, reqEditors ...RequestEditorFn) (*UploadFileResponse, error) // GetInventoryWithResponse request GetInventoryWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*GetInventoryResponse, error) // PlaceOrderWithBodyWithResponse 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) // DeleteOrderWithResponse request DeleteOrderWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*DeleteOrderResponse, error) // GetOrderByIdWithResponse request GetOrderByIdWithResponse(ctx context.Context, orderId int64, reqEditors ...RequestEditorFn) (*GetOrderByIdResponse, error) // CreateUserWithBodyWithResponse 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) // CreateUsersWithArrayInputWithBodyWithResponse 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) // CreateUsersWithListInputWithBodyWithResponse 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) // LoginUserWithResponse request LoginUserWithResponse(ctx context.Context, params *LoginUserParams, reqEditors ...RequestEditorFn) (*LoginUserResponse, error) // LogoutUserWithResponse request LogoutUserWithResponse(ctx context.Context, reqEditors ...RequestEditorFn) (*LogoutUserResponse, error) // DeleteUserWithResponse request DeleteUserWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*DeleteUserResponse, error) // GetUserByNameWithResponse request GetUserByNameWithResponse(ctx context.Context, username string, reqEditors ...RequestEditorFn) (*GetUserByNameResponse, error) // UpdateUserWithBodyWithResponse 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 ¶
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 ¶
func ParseCreateUsersWithArrayInputResponse ¶
func ParseCreateUsersWithArrayInputResponse(rsp *http.Response) (*CreateUsersWithArrayInputResponse, error)
ParseCreateUsersWithArrayInputResponse parses an HTTP response from a CreateUsersWithArrayInputWithResponse call
func (CreateUsersWithArrayInputResponse) Status ¶
func (r CreateUsersWithArrayInputResponse) Status() string
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 ¶
func ParseCreateUsersWithListInputResponse ¶
func ParseCreateUsersWithListInputResponse(rsp *http.Response) (*CreateUsersWithListInputResponse, error)
ParseCreateUsersWithListInputResponse parses an HTTP response from a CreateUsersWithListInputWithResponse call
func (CreateUsersWithListInputResponse) Status ¶
func (r CreateUsersWithListInputResponse) Status() string
Status returns HTTPResponse.Status
func (CreateUsersWithListInputResponse) StatusCode ¶
func (r CreateUsersWithListInputResponse) StatusCode() int
StatusCode returns HTTPResponse.StatusCode
type DeleteOrderResponse ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 ¶
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 Definition of a pet
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 ¶
RequestEditorFn is the function signature for the RequestEditor callback function
type UpdatePetJSONRequestBody ¶
type UpdatePetJSONRequestBody = Pet
UpdatePetJSONRequestBody defines body for UpdatePet for application/json ContentType.
type UpdatePetResponse ¶
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 ¶
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 ¶
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.