Documentation ¶
Index ¶
- type API
- type Client
- func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error)
- func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error)
- func (a *Client) PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error)
- func (a *Client) PetList(ctx context.Context, params *PetListParams) (*PetListOK, error)
- func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error)
- func (a *Client) PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error)
- type PetCreateCreated
- func (o *PetCreateCreated) Code() int
- func (o *PetCreateCreated) Error() string
- func (o *PetCreateCreated) GetPayload() *models.Pet
- func (o *PetCreateCreated) IsClientError() bool
- func (o *PetCreateCreated) IsCode(code int) bool
- func (o *PetCreateCreated) IsRedirect() bool
- func (o *PetCreateCreated) IsServerError() bool
- func (o *PetCreateCreated) IsSuccess() bool
- func (o *PetCreateCreated) String() string
- type PetCreateMethodNotAllowed
- func (o *PetCreateMethodNotAllowed) Code() int
- func (o *PetCreateMethodNotAllowed) Error() string
- func (o *PetCreateMethodNotAllowed) IsClientError() bool
- func (o *PetCreateMethodNotAllowed) IsCode(code int) bool
- func (o *PetCreateMethodNotAllowed) IsRedirect() bool
- func (o *PetCreateMethodNotAllowed) IsServerError() bool
- func (o *PetCreateMethodNotAllowed) IsSuccess() bool
- func (o *PetCreateMethodNotAllowed) String() string
- type PetCreateParams
- func (o *PetCreateParams) SetBody(body *models.Pet)
- func (o *PetCreateParams) SetContext(ctx context.Context)
- func (o *PetCreateParams) SetDefaults()
- func (o *PetCreateParams) SetHTTPClient(client *http.Client)
- func (o *PetCreateParams) SetTimeout(timeout time.Duration)
- func (o *PetCreateParams) WithBody(body *models.Pet) *PetCreateParams
- func (o *PetCreateParams) WithContext(ctx context.Context) *PetCreateParams
- func (o *PetCreateParams) WithDefaults() *PetCreateParams
- func (o *PetCreateParams) WithHTTPClient(client *http.Client) *PetCreateParams
- func (o *PetCreateParams) WithTimeout(timeout time.Duration) *PetCreateParams
- func (o *PetCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetCreateReader
- type PetDeleteBadRequest
- func (o *PetDeleteBadRequest) Code() int
- func (o *PetDeleteBadRequest) Error() string
- func (o *PetDeleteBadRequest) IsClientError() bool
- func (o *PetDeleteBadRequest) IsCode(code int) bool
- func (o *PetDeleteBadRequest) IsRedirect() bool
- func (o *PetDeleteBadRequest) IsServerError() bool
- func (o *PetDeleteBadRequest) IsSuccess() bool
- func (o *PetDeleteBadRequest) String() string
- type PetDeleteNoContent
- func (o *PetDeleteNoContent) Code() int
- func (o *PetDeleteNoContent) Error() string
- func (o *PetDeleteNoContent) IsClientError() bool
- func (o *PetDeleteNoContent) IsCode(code int) bool
- func (o *PetDeleteNoContent) IsRedirect() bool
- func (o *PetDeleteNoContent) IsServerError() bool
- func (o *PetDeleteNoContent) IsSuccess() bool
- func (o *PetDeleteNoContent) String() string
- type PetDeleteNotFound
- func (o *PetDeleteNotFound) Code() int
- func (o *PetDeleteNotFound) Error() string
- func (o *PetDeleteNotFound) IsClientError() bool
- func (o *PetDeleteNotFound) IsCode(code int) bool
- func (o *PetDeleteNotFound) IsRedirect() bool
- func (o *PetDeleteNotFound) IsServerError() bool
- func (o *PetDeleteNotFound) IsSuccess() bool
- func (o *PetDeleteNotFound) String() string
- type PetDeleteParams
- func (o *PetDeleteParams) SetAPIKey(aPIKey *string)
- func (o *PetDeleteParams) SetContext(ctx context.Context)
- func (o *PetDeleteParams) SetDefaults()
- func (o *PetDeleteParams) SetHTTPClient(client *http.Client)
- func (o *PetDeleteParams) SetPetID(petID int64)
- func (o *PetDeleteParams) SetTimeout(timeout time.Duration)
- func (o *PetDeleteParams) WithAPIKey(aPIKey *string) *PetDeleteParams
- func (o *PetDeleteParams) WithContext(ctx context.Context) *PetDeleteParams
- func (o *PetDeleteParams) WithDefaults() *PetDeleteParams
- func (o *PetDeleteParams) WithHTTPClient(client *http.Client) *PetDeleteParams
- func (o *PetDeleteParams) WithPetID(petID int64) *PetDeleteParams
- func (o *PetDeleteParams) WithTimeout(timeout time.Duration) *PetDeleteParams
- func (o *PetDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetDeleteReader
- type PetGetBadRequest
- func (o *PetGetBadRequest) Code() int
- func (o *PetGetBadRequest) Error() string
- func (o *PetGetBadRequest) IsClientError() bool
- func (o *PetGetBadRequest) IsCode(code int) bool
- func (o *PetGetBadRequest) IsRedirect() bool
- func (o *PetGetBadRequest) IsServerError() bool
- func (o *PetGetBadRequest) IsSuccess() bool
- func (o *PetGetBadRequest) String() string
- type PetGetNotFound
- func (o *PetGetNotFound) Code() int
- func (o *PetGetNotFound) Error() string
- func (o *PetGetNotFound) IsClientError() bool
- func (o *PetGetNotFound) IsCode(code int) bool
- func (o *PetGetNotFound) IsRedirect() bool
- func (o *PetGetNotFound) IsServerError() bool
- func (o *PetGetNotFound) IsSuccess() bool
- func (o *PetGetNotFound) String() string
- type PetGetOK
- func (o *PetGetOK) Code() int
- func (o *PetGetOK) Error() string
- func (o *PetGetOK) GetPayload() *models.Pet
- func (o *PetGetOK) IsClientError() bool
- func (o *PetGetOK) IsCode(code int) bool
- func (o *PetGetOK) IsRedirect() bool
- func (o *PetGetOK) IsServerError() bool
- func (o *PetGetOK) IsSuccess() bool
- func (o *PetGetOK) String() string
- type PetGetParams
- func (o *PetGetParams) SetContext(ctx context.Context)
- func (o *PetGetParams) SetDefaults()
- func (o *PetGetParams) SetHTTPClient(client *http.Client)
- func (o *PetGetParams) SetPetID(petID int64)
- func (o *PetGetParams) SetTimeout(timeout time.Duration)
- func (o *PetGetParams) WithContext(ctx context.Context) *PetGetParams
- func (o *PetGetParams) WithDefaults() *PetGetParams
- func (o *PetGetParams) WithHTTPClient(client *http.Client) *PetGetParams
- func (o *PetGetParams) WithPetID(petID int64) *PetGetParams
- func (o *PetGetParams) WithTimeout(timeout time.Duration) *PetGetParams
- func (o *PetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetGetReader
- type PetListBadRequest
- func (o *PetListBadRequest) Code() int
- func (o *PetListBadRequest) Error() string
- func (o *PetListBadRequest) IsClientError() bool
- func (o *PetListBadRequest) IsCode(code int) bool
- func (o *PetListBadRequest) IsRedirect() bool
- func (o *PetListBadRequest) IsServerError() bool
- func (o *PetListBadRequest) IsSuccess() bool
- func (o *PetListBadRequest) String() string
- type PetListOK
- func (o *PetListOK) Code() int
- func (o *PetListOK) Error() string
- func (o *PetListOK) GetPayload() []*models.Pet
- func (o *PetListOK) IsClientError() bool
- func (o *PetListOK) IsCode(code int) bool
- func (o *PetListOK) IsRedirect() bool
- func (o *PetListOK) IsServerError() bool
- func (o *PetListOK) IsSuccess() bool
- func (o *PetListOK) String() string
- type PetListParams
- func (o *PetListParams) SetContext(ctx context.Context)
- func (o *PetListParams) SetDefaults()
- func (o *PetListParams) SetHTTPClient(client *http.Client)
- func (o *PetListParams) SetStatus(status []string)
- func (o *PetListParams) SetTimeout(timeout time.Duration)
- func (o *PetListParams) WithContext(ctx context.Context) *PetListParams
- func (o *PetListParams) WithDefaults() *PetListParams
- func (o *PetListParams) WithHTTPClient(client *http.Client) *PetListParams
- func (o *PetListParams) WithStatus(status []string) *PetListParams
- func (o *PetListParams) WithTimeout(timeout time.Duration) *PetListParams
- func (o *PetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetListReader
- type PetUpdateBadRequest
- func (o *PetUpdateBadRequest) Code() int
- func (o *PetUpdateBadRequest) Error() string
- func (o *PetUpdateBadRequest) IsClientError() bool
- func (o *PetUpdateBadRequest) IsCode(code int) bool
- func (o *PetUpdateBadRequest) IsRedirect() bool
- func (o *PetUpdateBadRequest) IsServerError() bool
- func (o *PetUpdateBadRequest) IsSuccess() bool
- func (o *PetUpdateBadRequest) String() string
- type PetUpdateCreated
- func (o *PetUpdateCreated) Code() int
- func (o *PetUpdateCreated) Error() string
- func (o *PetUpdateCreated) GetPayload() *models.Pet
- func (o *PetUpdateCreated) IsClientError() bool
- func (o *PetUpdateCreated) IsCode(code int) bool
- func (o *PetUpdateCreated) IsRedirect() bool
- func (o *PetUpdateCreated) IsServerError() bool
- func (o *PetUpdateCreated) IsSuccess() bool
- func (o *PetUpdateCreated) String() string
- type PetUpdateMethodNotAllowed
- func (o *PetUpdateMethodNotAllowed) Code() int
- func (o *PetUpdateMethodNotAllowed) Error() string
- func (o *PetUpdateMethodNotAllowed) IsClientError() bool
- func (o *PetUpdateMethodNotAllowed) IsCode(code int) bool
- func (o *PetUpdateMethodNotAllowed) IsRedirect() bool
- func (o *PetUpdateMethodNotAllowed) IsServerError() bool
- func (o *PetUpdateMethodNotAllowed) IsSuccess() bool
- func (o *PetUpdateMethodNotAllowed) String() string
- type PetUpdateNotFound
- func (o *PetUpdateNotFound) Code() int
- func (o *PetUpdateNotFound) Error() string
- func (o *PetUpdateNotFound) IsClientError() bool
- func (o *PetUpdateNotFound) IsCode(code int) bool
- func (o *PetUpdateNotFound) IsRedirect() bool
- func (o *PetUpdateNotFound) IsServerError() bool
- func (o *PetUpdateNotFound) IsSuccess() bool
- func (o *PetUpdateNotFound) String() string
- type PetUpdateParams
- func (o *PetUpdateParams) SetBody(body *models.Pet)
- func (o *PetUpdateParams) SetContext(ctx context.Context)
- func (o *PetUpdateParams) SetDefaults()
- func (o *PetUpdateParams) SetHTTPClient(client *http.Client)
- func (o *PetUpdateParams) SetTimeout(timeout time.Duration)
- func (o *PetUpdateParams) WithBody(body *models.Pet) *PetUpdateParams
- func (o *PetUpdateParams) WithContext(ctx context.Context) *PetUpdateParams
- func (o *PetUpdateParams) WithDefaults() *PetUpdateParams
- func (o *PetUpdateParams) WithHTTPClient(client *http.Client) *PetUpdateParams
- func (o *PetUpdateParams) WithTimeout(timeout time.Duration) *PetUpdateParams
- func (o *PetUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetUpdateReader
- type PetUploadImageOK
- func (o *PetUploadImageOK) Code() int
- func (o *PetUploadImageOK) Error() string
- func (o *PetUploadImageOK) GetPayload() *models.APIResponse
- func (o *PetUploadImageOK) IsClientError() bool
- func (o *PetUploadImageOK) IsCode(code int) bool
- func (o *PetUploadImageOK) IsRedirect() bool
- func (o *PetUploadImageOK) IsServerError() bool
- func (o *PetUploadImageOK) IsSuccess() bool
- func (o *PetUploadImageOK) String() string
- type PetUploadImageParams
- func NewPetUploadImageParams() *PetUploadImageParams
- func NewPetUploadImageParamsWithContext(ctx context.Context) *PetUploadImageParams
- func NewPetUploadImageParamsWithHTTPClient(client *http.Client) *PetUploadImageParams
- func NewPetUploadImageParamsWithTimeout(timeout time.Duration) *PetUploadImageParams
- func (o *PetUploadImageParams) SetAdditionalMetadata(additionalMetadata *string)
- func (o *PetUploadImageParams) SetContext(ctx context.Context)
- func (o *PetUploadImageParams) SetDefaults()
- func (o *PetUploadImageParams) SetFile(file runtime.NamedReadCloser)
- func (o *PetUploadImageParams) SetHTTPClient(client *http.Client)
- func (o *PetUploadImageParams) SetPetID(petID int64)
- func (o *PetUploadImageParams) SetTimeout(timeout time.Duration)
- func (o *PetUploadImageParams) WithAdditionalMetadata(additionalMetadata *string) *PetUploadImageParams
- func (o *PetUploadImageParams) WithContext(ctx context.Context) *PetUploadImageParams
- func (o *PetUploadImageParams) WithDefaults() *PetUploadImageParams
- func (o *PetUploadImageParams) WithFile(file runtime.NamedReadCloser) *PetUploadImageParams
- func (o *PetUploadImageParams) WithHTTPClient(client *http.Client) *PetUploadImageParams
- func (o *PetUploadImageParams) WithPetID(petID int64) *PetUploadImageParams
- func (o *PetUploadImageParams) WithTimeout(timeout time.Duration) *PetUploadImageParams
- func (o *PetUploadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type PetUploadImageReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { /* PetCreate adds a new pet to the store*/ PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error) /* PetDelete deletes a pet*/ PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error) /* PetGet gets pet by it s ID*/ PetGet(ctx context.Context, params *PetGetParams) (*PetGetOK, error) /* PetList lists pets*/ PetList(ctx context.Context, params *PetListParams) (*PetListOK, error) /* PetUpdate updates an existing pet*/ PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error) /* PetUploadImage uploads an image*/ PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error) }
API is the interface of the pet client
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for pet API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client
New creates a new pet API client.
func (*Client) PetCreate ¶
func (a *Client) PetCreate(ctx context.Context, params *PetCreateParams) (*PetCreateCreated, error)
PetCreate adds a new pet to the store
func (*Client) PetDelete ¶
func (a *Client) PetDelete(ctx context.Context, params *PetDeleteParams) (*PetDeleteNoContent, error)
PetDelete deletes a pet
func (*Client) PetUpdate ¶
func (a *Client) PetUpdate(ctx context.Context, params *PetUpdateParams) (*PetUpdateCreated, error)
PetUpdate updates an existing pet
func (*Client) PetUploadImage ¶
func (a *Client) PetUploadImage(ctx context.Context, params *PetUploadImageParams) (*PetUploadImageOK, error)
PetUploadImage uploads an image
type PetCreateCreated ¶
PetCreateCreated describes a response with status code 201, with default header values.
Created
func NewPetCreateCreated ¶
func NewPetCreateCreated() *PetCreateCreated
NewPetCreateCreated creates a PetCreateCreated with default headers values
func (*PetCreateCreated) Code ¶
func (o *PetCreateCreated) Code() int
Code gets the status code for the pet create created response
func (*PetCreateCreated) Error ¶
func (o *PetCreateCreated) Error() string
func (*PetCreateCreated) GetPayload ¶
func (o *PetCreateCreated) GetPayload() *models.Pet
func (*PetCreateCreated) IsClientError ¶
func (o *PetCreateCreated) IsClientError() bool
IsClientError returns true when this pet create created response has a 4xx status code
func (*PetCreateCreated) IsCode ¶
func (o *PetCreateCreated) IsCode(code int) bool
IsCode returns true when this pet create created response a status code equal to that given
func (*PetCreateCreated) IsRedirect ¶
func (o *PetCreateCreated) IsRedirect() bool
IsRedirect returns true when this pet create created response has a 3xx status code
func (*PetCreateCreated) IsServerError ¶
func (o *PetCreateCreated) IsServerError() bool
IsServerError returns true when this pet create created response has a 5xx status code
func (*PetCreateCreated) IsSuccess ¶
func (o *PetCreateCreated) IsSuccess() bool
IsSuccess returns true when this pet create created response has a 2xx status code
func (*PetCreateCreated) String ¶
func (o *PetCreateCreated) String() string
type PetCreateMethodNotAllowed ¶
type PetCreateMethodNotAllowed struct { }
PetCreateMethodNotAllowed describes a response with status code 405, with default header values.
Invalid input
func NewPetCreateMethodNotAllowed ¶
func NewPetCreateMethodNotAllowed() *PetCreateMethodNotAllowed
NewPetCreateMethodNotAllowed creates a PetCreateMethodNotAllowed with default headers values
func (*PetCreateMethodNotAllowed) Code ¶
func (o *PetCreateMethodNotAllowed) Code() int
Code gets the status code for the pet create method not allowed response
func (*PetCreateMethodNotAllowed) Error ¶
func (o *PetCreateMethodNotAllowed) Error() string
func (*PetCreateMethodNotAllowed) IsClientError ¶
func (o *PetCreateMethodNotAllowed) IsClientError() bool
IsClientError returns true when this pet create method not allowed response has a 4xx status code
func (*PetCreateMethodNotAllowed) IsCode ¶
func (o *PetCreateMethodNotAllowed) IsCode(code int) bool
IsCode returns true when this pet create method not allowed response a status code equal to that given
func (*PetCreateMethodNotAllowed) IsRedirect ¶
func (o *PetCreateMethodNotAllowed) IsRedirect() bool
IsRedirect returns true when this pet create method not allowed response has a 3xx status code
func (*PetCreateMethodNotAllowed) IsServerError ¶
func (o *PetCreateMethodNotAllowed) IsServerError() bool
IsServerError returns true when this pet create method not allowed response has a 5xx status code
func (*PetCreateMethodNotAllowed) IsSuccess ¶
func (o *PetCreateMethodNotAllowed) IsSuccess() bool
IsSuccess returns true when this pet create method not allowed response has a 2xx status code
func (*PetCreateMethodNotAllowed) String ¶
func (o *PetCreateMethodNotAllowed) String() string
type PetCreateParams ¶
type PetCreateParams struct { /* Body. Pet object that needs to be added to the store */ Body *models.Pet Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetCreateParams contains all the parameters to send to the API endpoint
for the pet create operation. Typically these are written to a http.Request.
func NewPetCreateParams ¶
func NewPetCreateParams() *PetCreateParams
NewPetCreateParams creates a new PetCreateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetCreateParamsWithContext ¶
func NewPetCreateParamsWithContext(ctx context.Context) *PetCreateParams
NewPetCreateParamsWithContext creates a new PetCreateParams object with the ability to set a context for a request.
func NewPetCreateParamsWithHTTPClient ¶
func NewPetCreateParamsWithHTTPClient(client *http.Client) *PetCreateParams
NewPetCreateParamsWithHTTPClient creates a new PetCreateParams object with the ability to set a custom HTTPClient for a request.
func NewPetCreateParamsWithTimeout ¶
func NewPetCreateParamsWithTimeout(timeout time.Duration) *PetCreateParams
NewPetCreateParamsWithTimeout creates a new PetCreateParams object with the ability to set a timeout on a request.
func (*PetCreateParams) SetBody ¶
func (o *PetCreateParams) SetBody(body *models.Pet)
SetBody adds the body to the pet create params
func (*PetCreateParams) SetContext ¶
func (o *PetCreateParams) SetContext(ctx context.Context)
SetContext adds the context to the pet create params
func (*PetCreateParams) SetDefaults ¶
func (o *PetCreateParams) SetDefaults()
SetDefaults hydrates default values in the pet create params (not the query body).
All values with no default are reset to their zero value.
func (*PetCreateParams) SetHTTPClient ¶
func (o *PetCreateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet create params
func (*PetCreateParams) SetTimeout ¶
func (o *PetCreateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet create params
func (*PetCreateParams) WithBody ¶
func (o *PetCreateParams) WithBody(body *models.Pet) *PetCreateParams
WithBody adds the body to the pet create params
func (*PetCreateParams) WithContext ¶
func (o *PetCreateParams) WithContext(ctx context.Context) *PetCreateParams
WithContext adds the context to the pet create params
func (*PetCreateParams) WithDefaults ¶
func (o *PetCreateParams) WithDefaults() *PetCreateParams
WithDefaults hydrates default values in the pet create params (not the query body).
All values with no default are reset to their zero value.
func (*PetCreateParams) WithHTTPClient ¶
func (o *PetCreateParams) WithHTTPClient(client *http.Client) *PetCreateParams
WithHTTPClient adds the HTTPClient to the pet create params
func (*PetCreateParams) WithTimeout ¶
func (o *PetCreateParams) WithTimeout(timeout time.Duration) *PetCreateParams
WithTimeout adds the timeout to the pet create params
func (*PetCreateParams) WriteToRequest ¶
func (o *PetCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetCreateReader ¶
type PetCreateReader struct {
// contains filtered or unexported fields
}
PetCreateReader is a Reader for the PetCreate structure.
func (*PetCreateReader) ReadResponse ¶
func (o *PetCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PetDeleteBadRequest ¶
type PetDeleteBadRequest struct { }
PetDeleteBadRequest describes a response with status code 400, with default header values.
Invalid ID supplied
func NewPetDeleteBadRequest ¶
func NewPetDeleteBadRequest() *PetDeleteBadRequest
NewPetDeleteBadRequest creates a PetDeleteBadRequest with default headers values
func (*PetDeleteBadRequest) Code ¶
func (o *PetDeleteBadRequest) Code() int
Code gets the status code for the pet delete bad request response
func (*PetDeleteBadRequest) Error ¶
func (o *PetDeleteBadRequest) Error() string
func (*PetDeleteBadRequest) IsClientError ¶
func (o *PetDeleteBadRequest) IsClientError() bool
IsClientError returns true when this pet delete bad request response has a 4xx status code
func (*PetDeleteBadRequest) IsCode ¶
func (o *PetDeleteBadRequest) IsCode(code int) bool
IsCode returns true when this pet delete bad request response a status code equal to that given
func (*PetDeleteBadRequest) IsRedirect ¶
func (o *PetDeleteBadRequest) IsRedirect() bool
IsRedirect returns true when this pet delete bad request response has a 3xx status code
func (*PetDeleteBadRequest) IsServerError ¶
func (o *PetDeleteBadRequest) IsServerError() bool
IsServerError returns true when this pet delete bad request response has a 5xx status code
func (*PetDeleteBadRequest) IsSuccess ¶
func (o *PetDeleteBadRequest) IsSuccess() bool
IsSuccess returns true when this pet delete bad request response has a 2xx status code
func (*PetDeleteBadRequest) String ¶
func (o *PetDeleteBadRequest) String() string
type PetDeleteNoContent ¶
type PetDeleteNoContent struct { }
PetDeleteNoContent describes a response with status code 204, with default header values.
Deleted successfully
func NewPetDeleteNoContent ¶
func NewPetDeleteNoContent() *PetDeleteNoContent
NewPetDeleteNoContent creates a PetDeleteNoContent with default headers values
func (*PetDeleteNoContent) Code ¶
func (o *PetDeleteNoContent) Code() int
Code gets the status code for the pet delete no content response
func (*PetDeleteNoContent) Error ¶
func (o *PetDeleteNoContent) Error() string
func (*PetDeleteNoContent) IsClientError ¶
func (o *PetDeleteNoContent) IsClientError() bool
IsClientError returns true when this pet delete no content response has a 4xx status code
func (*PetDeleteNoContent) IsCode ¶
func (o *PetDeleteNoContent) IsCode(code int) bool
IsCode returns true when this pet delete no content response a status code equal to that given
func (*PetDeleteNoContent) IsRedirect ¶
func (o *PetDeleteNoContent) IsRedirect() bool
IsRedirect returns true when this pet delete no content response has a 3xx status code
func (*PetDeleteNoContent) IsServerError ¶
func (o *PetDeleteNoContent) IsServerError() bool
IsServerError returns true when this pet delete no content response has a 5xx status code
func (*PetDeleteNoContent) IsSuccess ¶
func (o *PetDeleteNoContent) IsSuccess() bool
IsSuccess returns true when this pet delete no content response has a 2xx status code
func (*PetDeleteNoContent) String ¶
func (o *PetDeleteNoContent) String() string
type PetDeleteNotFound ¶
type PetDeleteNotFound struct { }
PetDeleteNotFound describes a response with status code 404, with default header values.
Pet not found
func NewPetDeleteNotFound ¶
func NewPetDeleteNotFound() *PetDeleteNotFound
NewPetDeleteNotFound creates a PetDeleteNotFound with default headers values
func (*PetDeleteNotFound) Code ¶
func (o *PetDeleteNotFound) Code() int
Code gets the status code for the pet delete not found response
func (*PetDeleteNotFound) Error ¶
func (o *PetDeleteNotFound) Error() string
func (*PetDeleteNotFound) IsClientError ¶
func (o *PetDeleteNotFound) IsClientError() bool
IsClientError returns true when this pet delete not found response has a 4xx status code
func (*PetDeleteNotFound) IsCode ¶
func (o *PetDeleteNotFound) IsCode(code int) bool
IsCode returns true when this pet delete not found response a status code equal to that given
func (*PetDeleteNotFound) IsRedirect ¶
func (o *PetDeleteNotFound) IsRedirect() bool
IsRedirect returns true when this pet delete not found response has a 3xx status code
func (*PetDeleteNotFound) IsServerError ¶
func (o *PetDeleteNotFound) IsServerError() bool
IsServerError returns true when this pet delete not found response has a 5xx status code
func (*PetDeleteNotFound) IsSuccess ¶
func (o *PetDeleteNotFound) IsSuccess() bool
IsSuccess returns true when this pet delete not found response has a 2xx status code
func (*PetDeleteNotFound) String ¶
func (o *PetDeleteNotFound) String() string
type PetDeleteParams ¶
type PetDeleteParams struct { // APIKey. APIKey *string /* PetID. Pet id to delete Format: int64 */ PetID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetDeleteParams contains all the parameters to send to the API endpoint
for the pet delete operation. Typically these are written to a http.Request.
func NewPetDeleteParams ¶
func NewPetDeleteParams() *PetDeleteParams
NewPetDeleteParams creates a new PetDeleteParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetDeleteParamsWithContext ¶
func NewPetDeleteParamsWithContext(ctx context.Context) *PetDeleteParams
NewPetDeleteParamsWithContext creates a new PetDeleteParams object with the ability to set a context for a request.
func NewPetDeleteParamsWithHTTPClient ¶
func NewPetDeleteParamsWithHTTPClient(client *http.Client) *PetDeleteParams
NewPetDeleteParamsWithHTTPClient creates a new PetDeleteParams object with the ability to set a custom HTTPClient for a request.
func NewPetDeleteParamsWithTimeout ¶
func NewPetDeleteParamsWithTimeout(timeout time.Duration) *PetDeleteParams
NewPetDeleteParamsWithTimeout creates a new PetDeleteParams object with the ability to set a timeout on a request.
func (*PetDeleteParams) SetAPIKey ¶
func (o *PetDeleteParams) SetAPIKey(aPIKey *string)
SetAPIKey adds the apiKey to the pet delete params
func (*PetDeleteParams) SetContext ¶
func (o *PetDeleteParams) SetContext(ctx context.Context)
SetContext adds the context to the pet delete params
func (*PetDeleteParams) SetDefaults ¶
func (o *PetDeleteParams) SetDefaults()
SetDefaults hydrates default values in the pet delete params (not the query body).
All values with no default are reset to their zero value.
func (*PetDeleteParams) SetHTTPClient ¶
func (o *PetDeleteParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet delete params
func (*PetDeleteParams) SetPetID ¶
func (o *PetDeleteParams) SetPetID(petID int64)
SetPetID adds the petId to the pet delete params
func (*PetDeleteParams) SetTimeout ¶
func (o *PetDeleteParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet delete params
func (*PetDeleteParams) WithAPIKey ¶
func (o *PetDeleteParams) WithAPIKey(aPIKey *string) *PetDeleteParams
WithAPIKey adds the aPIKey to the pet delete params
func (*PetDeleteParams) WithContext ¶
func (o *PetDeleteParams) WithContext(ctx context.Context) *PetDeleteParams
WithContext adds the context to the pet delete params
func (*PetDeleteParams) WithDefaults ¶
func (o *PetDeleteParams) WithDefaults() *PetDeleteParams
WithDefaults hydrates default values in the pet delete params (not the query body).
All values with no default are reset to their zero value.
func (*PetDeleteParams) WithHTTPClient ¶
func (o *PetDeleteParams) WithHTTPClient(client *http.Client) *PetDeleteParams
WithHTTPClient adds the HTTPClient to the pet delete params
func (*PetDeleteParams) WithPetID ¶
func (o *PetDeleteParams) WithPetID(petID int64) *PetDeleteParams
WithPetID adds the petID to the pet delete params
func (*PetDeleteParams) WithTimeout ¶
func (o *PetDeleteParams) WithTimeout(timeout time.Duration) *PetDeleteParams
WithTimeout adds the timeout to the pet delete params
func (*PetDeleteParams) WriteToRequest ¶
func (o *PetDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetDeleteReader ¶
type PetDeleteReader struct {
// contains filtered or unexported fields
}
PetDeleteReader is a Reader for the PetDelete structure.
func (*PetDeleteReader) ReadResponse ¶
func (o *PetDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PetGetBadRequest ¶
type PetGetBadRequest struct { }
PetGetBadRequest describes a response with status code 400, with default header values.
Invalid ID supplied
func NewPetGetBadRequest ¶
func NewPetGetBadRequest() *PetGetBadRequest
NewPetGetBadRequest creates a PetGetBadRequest with default headers values
func (*PetGetBadRequest) Code ¶
func (o *PetGetBadRequest) Code() int
Code gets the status code for the pet get bad request response
func (*PetGetBadRequest) Error ¶
func (o *PetGetBadRequest) Error() string
func (*PetGetBadRequest) IsClientError ¶
func (o *PetGetBadRequest) IsClientError() bool
IsClientError returns true when this pet get bad request response has a 4xx status code
func (*PetGetBadRequest) IsCode ¶
func (o *PetGetBadRequest) IsCode(code int) bool
IsCode returns true when this pet get bad request response a status code equal to that given
func (*PetGetBadRequest) IsRedirect ¶
func (o *PetGetBadRequest) IsRedirect() bool
IsRedirect returns true when this pet get bad request response has a 3xx status code
func (*PetGetBadRequest) IsServerError ¶
func (o *PetGetBadRequest) IsServerError() bool
IsServerError returns true when this pet get bad request response has a 5xx status code
func (*PetGetBadRequest) IsSuccess ¶
func (o *PetGetBadRequest) IsSuccess() bool
IsSuccess returns true when this pet get bad request response has a 2xx status code
func (*PetGetBadRequest) String ¶
func (o *PetGetBadRequest) String() string
type PetGetNotFound ¶
type PetGetNotFound struct { }
PetGetNotFound describes a response with status code 404, with default header values.
Pet not found
func NewPetGetNotFound ¶
func NewPetGetNotFound() *PetGetNotFound
NewPetGetNotFound creates a PetGetNotFound with default headers values
func (*PetGetNotFound) Code ¶
func (o *PetGetNotFound) Code() int
Code gets the status code for the pet get not found response
func (*PetGetNotFound) Error ¶
func (o *PetGetNotFound) Error() string
func (*PetGetNotFound) IsClientError ¶
func (o *PetGetNotFound) IsClientError() bool
IsClientError returns true when this pet get not found response has a 4xx status code
func (*PetGetNotFound) IsCode ¶
func (o *PetGetNotFound) IsCode(code int) bool
IsCode returns true when this pet get not found response a status code equal to that given
func (*PetGetNotFound) IsRedirect ¶
func (o *PetGetNotFound) IsRedirect() bool
IsRedirect returns true when this pet get not found response has a 3xx status code
func (*PetGetNotFound) IsServerError ¶
func (o *PetGetNotFound) IsServerError() bool
IsServerError returns true when this pet get not found response has a 5xx status code
func (*PetGetNotFound) IsSuccess ¶
func (o *PetGetNotFound) IsSuccess() bool
IsSuccess returns true when this pet get not found response has a 2xx status code
func (*PetGetNotFound) String ¶
func (o *PetGetNotFound) String() string
type PetGetOK ¶
PetGetOK describes a response with status code 200, with default header values.
successful operation
func NewPetGetOK ¶
func NewPetGetOK() *PetGetOK
NewPetGetOK creates a PetGetOK with default headers values
func (*PetGetOK) GetPayload ¶
func (*PetGetOK) IsClientError ¶
IsClientError returns true when this pet get o k response has a 4xx status code
func (*PetGetOK) IsCode ¶
IsCode returns true when this pet get o k response a status code equal to that given
func (*PetGetOK) IsRedirect ¶
IsRedirect returns true when this pet get o k response has a 3xx status code
func (*PetGetOK) IsServerError ¶
IsServerError returns true when this pet get o k response has a 5xx status code
type PetGetParams ¶
type PetGetParams struct { /* PetID. ID of pet to return Format: int64 */ PetID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetGetParams contains all the parameters to send to the API endpoint
for the pet get operation. Typically these are written to a http.Request.
func NewPetGetParams ¶
func NewPetGetParams() *PetGetParams
NewPetGetParams creates a new PetGetParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetGetParamsWithContext ¶
func NewPetGetParamsWithContext(ctx context.Context) *PetGetParams
NewPetGetParamsWithContext creates a new PetGetParams object with the ability to set a context for a request.
func NewPetGetParamsWithHTTPClient ¶
func NewPetGetParamsWithHTTPClient(client *http.Client) *PetGetParams
NewPetGetParamsWithHTTPClient creates a new PetGetParams object with the ability to set a custom HTTPClient for a request.
func NewPetGetParamsWithTimeout ¶
func NewPetGetParamsWithTimeout(timeout time.Duration) *PetGetParams
NewPetGetParamsWithTimeout creates a new PetGetParams object with the ability to set a timeout on a request.
func (*PetGetParams) SetContext ¶
func (o *PetGetParams) SetContext(ctx context.Context)
SetContext adds the context to the pet get params
func (*PetGetParams) SetDefaults ¶
func (o *PetGetParams) SetDefaults()
SetDefaults hydrates default values in the pet get params (not the query body).
All values with no default are reset to their zero value.
func (*PetGetParams) SetHTTPClient ¶
func (o *PetGetParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet get params
func (*PetGetParams) SetPetID ¶
func (o *PetGetParams) SetPetID(petID int64)
SetPetID adds the petId to the pet get params
func (*PetGetParams) SetTimeout ¶
func (o *PetGetParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet get params
func (*PetGetParams) WithContext ¶
func (o *PetGetParams) WithContext(ctx context.Context) *PetGetParams
WithContext adds the context to the pet get params
func (*PetGetParams) WithDefaults ¶
func (o *PetGetParams) WithDefaults() *PetGetParams
WithDefaults hydrates default values in the pet get params (not the query body).
All values with no default are reset to their zero value.
func (*PetGetParams) WithHTTPClient ¶
func (o *PetGetParams) WithHTTPClient(client *http.Client) *PetGetParams
WithHTTPClient adds the HTTPClient to the pet get params
func (*PetGetParams) WithPetID ¶
func (o *PetGetParams) WithPetID(petID int64) *PetGetParams
WithPetID adds the petID to the pet get params
func (*PetGetParams) WithTimeout ¶
func (o *PetGetParams) WithTimeout(timeout time.Duration) *PetGetParams
WithTimeout adds the timeout to the pet get params
func (*PetGetParams) WriteToRequest ¶
func (o *PetGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetGetReader ¶
type PetGetReader struct {
// contains filtered or unexported fields
}
PetGetReader is a Reader for the PetGet structure.
func (*PetGetReader) ReadResponse ¶
func (o *PetGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PetListBadRequest ¶
type PetListBadRequest struct { }
PetListBadRequest describes a response with status code 400, with default header values.
Invalid status value
func NewPetListBadRequest ¶
func NewPetListBadRequest() *PetListBadRequest
NewPetListBadRequest creates a PetListBadRequest with default headers values
func (*PetListBadRequest) Code ¶
func (o *PetListBadRequest) Code() int
Code gets the status code for the pet list bad request response
func (*PetListBadRequest) Error ¶
func (o *PetListBadRequest) Error() string
func (*PetListBadRequest) IsClientError ¶
func (o *PetListBadRequest) IsClientError() bool
IsClientError returns true when this pet list bad request response has a 4xx status code
func (*PetListBadRequest) IsCode ¶
func (o *PetListBadRequest) IsCode(code int) bool
IsCode returns true when this pet list bad request response a status code equal to that given
func (*PetListBadRequest) IsRedirect ¶
func (o *PetListBadRequest) IsRedirect() bool
IsRedirect returns true when this pet list bad request response has a 3xx status code
func (*PetListBadRequest) IsServerError ¶
func (o *PetListBadRequest) IsServerError() bool
IsServerError returns true when this pet list bad request response has a 5xx status code
func (*PetListBadRequest) IsSuccess ¶
func (o *PetListBadRequest) IsSuccess() bool
IsSuccess returns true when this pet list bad request response has a 2xx status code
func (*PetListBadRequest) String ¶
func (o *PetListBadRequest) String() string
type PetListOK ¶
PetListOK describes a response with status code 200, with default header values.
successful operation
func NewPetListOK ¶
func NewPetListOK() *PetListOK
NewPetListOK creates a PetListOK with default headers values
func (*PetListOK) GetPayload ¶
func (*PetListOK) IsClientError ¶
IsClientError returns true when this pet list o k response has a 4xx status code
func (*PetListOK) IsCode ¶
IsCode returns true when this pet list o k response a status code equal to that given
func (*PetListOK) IsRedirect ¶
IsRedirect returns true when this pet list o k response has a 3xx status code
func (*PetListOK) IsServerError ¶
IsServerError returns true when this pet list o k response has a 5xx status code
type PetListParams ¶
type PetListParams struct { /* Status. Status values that need to be considered for filter */ Status []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetListParams contains all the parameters to send to the API endpoint
for the pet list operation. Typically these are written to a http.Request.
func NewPetListParams ¶
func NewPetListParams() *PetListParams
NewPetListParams creates a new PetListParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetListParamsWithContext ¶
func NewPetListParamsWithContext(ctx context.Context) *PetListParams
NewPetListParamsWithContext creates a new PetListParams object with the ability to set a context for a request.
func NewPetListParamsWithHTTPClient ¶
func NewPetListParamsWithHTTPClient(client *http.Client) *PetListParams
NewPetListParamsWithHTTPClient creates a new PetListParams object with the ability to set a custom HTTPClient for a request.
func NewPetListParamsWithTimeout ¶
func NewPetListParamsWithTimeout(timeout time.Duration) *PetListParams
NewPetListParamsWithTimeout creates a new PetListParams object with the ability to set a timeout on a request.
func (*PetListParams) SetContext ¶
func (o *PetListParams) SetContext(ctx context.Context)
SetContext adds the context to the pet list params
func (*PetListParams) SetDefaults ¶
func (o *PetListParams) SetDefaults()
SetDefaults hydrates default values in the pet list params (not the query body).
All values with no default are reset to their zero value.
func (*PetListParams) SetHTTPClient ¶
func (o *PetListParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet list params
func (*PetListParams) SetStatus ¶
func (o *PetListParams) SetStatus(status []string)
SetStatus adds the status to the pet list params
func (*PetListParams) SetTimeout ¶
func (o *PetListParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet list params
func (*PetListParams) WithContext ¶
func (o *PetListParams) WithContext(ctx context.Context) *PetListParams
WithContext adds the context to the pet list params
func (*PetListParams) WithDefaults ¶
func (o *PetListParams) WithDefaults() *PetListParams
WithDefaults hydrates default values in the pet list params (not the query body).
All values with no default are reset to their zero value.
func (*PetListParams) WithHTTPClient ¶
func (o *PetListParams) WithHTTPClient(client *http.Client) *PetListParams
WithHTTPClient adds the HTTPClient to the pet list params
func (*PetListParams) WithStatus ¶
func (o *PetListParams) WithStatus(status []string) *PetListParams
WithStatus adds the status to the pet list params
func (*PetListParams) WithTimeout ¶
func (o *PetListParams) WithTimeout(timeout time.Duration) *PetListParams
WithTimeout adds the timeout to the pet list params
func (*PetListParams) WriteToRequest ¶
func (o *PetListParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetListReader ¶
type PetListReader struct {
// contains filtered or unexported fields
}
PetListReader is a Reader for the PetList structure.
func (*PetListReader) ReadResponse ¶
func (o *PetListReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PetUpdateBadRequest ¶
type PetUpdateBadRequest struct { }
PetUpdateBadRequest describes a response with status code 400, with default header values.
Invalid ID supplied
func NewPetUpdateBadRequest ¶
func NewPetUpdateBadRequest() *PetUpdateBadRequest
NewPetUpdateBadRequest creates a PetUpdateBadRequest with default headers values
func (*PetUpdateBadRequest) Code ¶
func (o *PetUpdateBadRequest) Code() int
Code gets the status code for the pet update bad request response
func (*PetUpdateBadRequest) Error ¶
func (o *PetUpdateBadRequest) Error() string
func (*PetUpdateBadRequest) IsClientError ¶
func (o *PetUpdateBadRequest) IsClientError() bool
IsClientError returns true when this pet update bad request response has a 4xx status code
func (*PetUpdateBadRequest) IsCode ¶
func (o *PetUpdateBadRequest) IsCode(code int) bool
IsCode returns true when this pet update bad request response a status code equal to that given
func (*PetUpdateBadRequest) IsRedirect ¶
func (o *PetUpdateBadRequest) IsRedirect() bool
IsRedirect returns true when this pet update bad request response has a 3xx status code
func (*PetUpdateBadRequest) IsServerError ¶
func (o *PetUpdateBadRequest) IsServerError() bool
IsServerError returns true when this pet update bad request response has a 5xx status code
func (*PetUpdateBadRequest) IsSuccess ¶
func (o *PetUpdateBadRequest) IsSuccess() bool
IsSuccess returns true when this pet update bad request response has a 2xx status code
func (*PetUpdateBadRequest) String ¶
func (o *PetUpdateBadRequest) String() string
type PetUpdateCreated ¶
PetUpdateCreated describes a response with status code 201, with default header values.
Updated successfully
func NewPetUpdateCreated ¶
func NewPetUpdateCreated() *PetUpdateCreated
NewPetUpdateCreated creates a PetUpdateCreated with default headers values
func (*PetUpdateCreated) Code ¶
func (o *PetUpdateCreated) Code() int
Code gets the status code for the pet update created response
func (*PetUpdateCreated) Error ¶
func (o *PetUpdateCreated) Error() string
func (*PetUpdateCreated) GetPayload ¶
func (o *PetUpdateCreated) GetPayload() *models.Pet
func (*PetUpdateCreated) IsClientError ¶
func (o *PetUpdateCreated) IsClientError() bool
IsClientError returns true when this pet update created response has a 4xx status code
func (*PetUpdateCreated) IsCode ¶
func (o *PetUpdateCreated) IsCode(code int) bool
IsCode returns true when this pet update created response a status code equal to that given
func (*PetUpdateCreated) IsRedirect ¶
func (o *PetUpdateCreated) IsRedirect() bool
IsRedirect returns true when this pet update created response has a 3xx status code
func (*PetUpdateCreated) IsServerError ¶
func (o *PetUpdateCreated) IsServerError() bool
IsServerError returns true when this pet update created response has a 5xx status code
func (*PetUpdateCreated) IsSuccess ¶
func (o *PetUpdateCreated) IsSuccess() bool
IsSuccess returns true when this pet update created response has a 2xx status code
func (*PetUpdateCreated) String ¶
func (o *PetUpdateCreated) String() string
type PetUpdateMethodNotAllowed ¶
type PetUpdateMethodNotAllowed struct { }
PetUpdateMethodNotAllowed describes a response with status code 405, with default header values.
Validation exception
func NewPetUpdateMethodNotAllowed ¶
func NewPetUpdateMethodNotAllowed() *PetUpdateMethodNotAllowed
NewPetUpdateMethodNotAllowed creates a PetUpdateMethodNotAllowed with default headers values
func (*PetUpdateMethodNotAllowed) Code ¶
func (o *PetUpdateMethodNotAllowed) Code() int
Code gets the status code for the pet update method not allowed response
func (*PetUpdateMethodNotAllowed) Error ¶
func (o *PetUpdateMethodNotAllowed) Error() string
func (*PetUpdateMethodNotAllowed) IsClientError ¶
func (o *PetUpdateMethodNotAllowed) IsClientError() bool
IsClientError returns true when this pet update method not allowed response has a 4xx status code
func (*PetUpdateMethodNotAllowed) IsCode ¶
func (o *PetUpdateMethodNotAllowed) IsCode(code int) bool
IsCode returns true when this pet update method not allowed response a status code equal to that given
func (*PetUpdateMethodNotAllowed) IsRedirect ¶
func (o *PetUpdateMethodNotAllowed) IsRedirect() bool
IsRedirect returns true when this pet update method not allowed response has a 3xx status code
func (*PetUpdateMethodNotAllowed) IsServerError ¶
func (o *PetUpdateMethodNotAllowed) IsServerError() bool
IsServerError returns true when this pet update method not allowed response has a 5xx status code
func (*PetUpdateMethodNotAllowed) IsSuccess ¶
func (o *PetUpdateMethodNotAllowed) IsSuccess() bool
IsSuccess returns true when this pet update method not allowed response has a 2xx status code
func (*PetUpdateMethodNotAllowed) String ¶
func (o *PetUpdateMethodNotAllowed) String() string
type PetUpdateNotFound ¶
type PetUpdateNotFound struct { }
PetUpdateNotFound describes a response with status code 404, with default header values.
Pet not found
func NewPetUpdateNotFound ¶
func NewPetUpdateNotFound() *PetUpdateNotFound
NewPetUpdateNotFound creates a PetUpdateNotFound with default headers values
func (*PetUpdateNotFound) Code ¶
func (o *PetUpdateNotFound) Code() int
Code gets the status code for the pet update not found response
func (*PetUpdateNotFound) Error ¶
func (o *PetUpdateNotFound) Error() string
func (*PetUpdateNotFound) IsClientError ¶
func (o *PetUpdateNotFound) IsClientError() bool
IsClientError returns true when this pet update not found response has a 4xx status code
func (*PetUpdateNotFound) IsCode ¶
func (o *PetUpdateNotFound) IsCode(code int) bool
IsCode returns true when this pet update not found response a status code equal to that given
func (*PetUpdateNotFound) IsRedirect ¶
func (o *PetUpdateNotFound) IsRedirect() bool
IsRedirect returns true when this pet update not found response has a 3xx status code
func (*PetUpdateNotFound) IsServerError ¶
func (o *PetUpdateNotFound) IsServerError() bool
IsServerError returns true when this pet update not found response has a 5xx status code
func (*PetUpdateNotFound) IsSuccess ¶
func (o *PetUpdateNotFound) IsSuccess() bool
IsSuccess returns true when this pet update not found response has a 2xx status code
func (*PetUpdateNotFound) String ¶
func (o *PetUpdateNotFound) String() string
type PetUpdateParams ¶
type PetUpdateParams struct { /* Body. Pet object that needs to be added to the store */ Body *models.Pet Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetUpdateParams contains all the parameters to send to the API endpoint
for the pet update operation. Typically these are written to a http.Request.
func NewPetUpdateParams ¶
func NewPetUpdateParams() *PetUpdateParams
NewPetUpdateParams creates a new PetUpdateParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetUpdateParamsWithContext ¶
func NewPetUpdateParamsWithContext(ctx context.Context) *PetUpdateParams
NewPetUpdateParamsWithContext creates a new PetUpdateParams object with the ability to set a context for a request.
func NewPetUpdateParamsWithHTTPClient ¶
func NewPetUpdateParamsWithHTTPClient(client *http.Client) *PetUpdateParams
NewPetUpdateParamsWithHTTPClient creates a new PetUpdateParams object with the ability to set a custom HTTPClient for a request.
func NewPetUpdateParamsWithTimeout ¶
func NewPetUpdateParamsWithTimeout(timeout time.Duration) *PetUpdateParams
NewPetUpdateParamsWithTimeout creates a new PetUpdateParams object with the ability to set a timeout on a request.
func (*PetUpdateParams) SetBody ¶
func (o *PetUpdateParams) SetBody(body *models.Pet)
SetBody adds the body to the pet update params
func (*PetUpdateParams) SetContext ¶
func (o *PetUpdateParams) SetContext(ctx context.Context)
SetContext adds the context to the pet update params
func (*PetUpdateParams) SetDefaults ¶
func (o *PetUpdateParams) SetDefaults()
SetDefaults hydrates default values in the pet update params (not the query body).
All values with no default are reset to their zero value.
func (*PetUpdateParams) SetHTTPClient ¶
func (o *PetUpdateParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet update params
func (*PetUpdateParams) SetTimeout ¶
func (o *PetUpdateParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet update params
func (*PetUpdateParams) WithBody ¶
func (o *PetUpdateParams) WithBody(body *models.Pet) *PetUpdateParams
WithBody adds the body to the pet update params
func (*PetUpdateParams) WithContext ¶
func (o *PetUpdateParams) WithContext(ctx context.Context) *PetUpdateParams
WithContext adds the context to the pet update params
func (*PetUpdateParams) WithDefaults ¶
func (o *PetUpdateParams) WithDefaults() *PetUpdateParams
WithDefaults hydrates default values in the pet update params (not the query body).
All values with no default are reset to their zero value.
func (*PetUpdateParams) WithHTTPClient ¶
func (o *PetUpdateParams) WithHTTPClient(client *http.Client) *PetUpdateParams
WithHTTPClient adds the HTTPClient to the pet update params
func (*PetUpdateParams) WithTimeout ¶
func (o *PetUpdateParams) WithTimeout(timeout time.Duration) *PetUpdateParams
WithTimeout adds the timeout to the pet update params
func (*PetUpdateParams) WriteToRequest ¶
func (o *PetUpdateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetUpdateReader ¶
type PetUpdateReader struct {
// contains filtered or unexported fields
}
PetUpdateReader is a Reader for the PetUpdate structure.
func (*PetUpdateReader) ReadResponse ¶
func (o *PetUpdateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type PetUploadImageOK ¶
type PetUploadImageOK struct {
Payload *models.APIResponse
}
PetUploadImageOK describes a response with status code 200, with default header values.
successful operation
func NewPetUploadImageOK ¶
func NewPetUploadImageOK() *PetUploadImageOK
NewPetUploadImageOK creates a PetUploadImageOK with default headers values
func (*PetUploadImageOK) Code ¶
func (o *PetUploadImageOK) Code() int
Code gets the status code for the pet upload image o k response
func (*PetUploadImageOK) Error ¶
func (o *PetUploadImageOK) Error() string
func (*PetUploadImageOK) GetPayload ¶
func (o *PetUploadImageOK) GetPayload() *models.APIResponse
func (*PetUploadImageOK) IsClientError ¶
func (o *PetUploadImageOK) IsClientError() bool
IsClientError returns true when this pet upload image o k response has a 4xx status code
func (*PetUploadImageOK) IsCode ¶
func (o *PetUploadImageOK) IsCode(code int) bool
IsCode returns true when this pet upload image o k response a status code equal to that given
func (*PetUploadImageOK) IsRedirect ¶
func (o *PetUploadImageOK) IsRedirect() bool
IsRedirect returns true when this pet upload image o k response has a 3xx status code
func (*PetUploadImageOK) IsServerError ¶
func (o *PetUploadImageOK) IsServerError() bool
IsServerError returns true when this pet upload image o k response has a 5xx status code
func (*PetUploadImageOK) IsSuccess ¶
func (o *PetUploadImageOK) IsSuccess() bool
IsSuccess returns true when this pet upload image o k response has a 2xx status code
func (*PetUploadImageOK) String ¶
func (o *PetUploadImageOK) String() string
type PetUploadImageParams ¶
type PetUploadImageParams struct { /* AdditionalMetadata. Additional data to pass to server */ AdditionalMetadata *string /* File. file to upload */ File runtime.NamedReadCloser /* PetID. ID of pet to update Format: int64 */ PetID int64 Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
PetUploadImageParams contains all the parameters to send to the API endpoint
for the pet upload image operation. Typically these are written to a http.Request.
func NewPetUploadImageParams ¶
func NewPetUploadImageParams() *PetUploadImageParams
NewPetUploadImageParams creates a new PetUploadImageParams object, with the default timeout for this client.
Default values are not hydrated, since defaults are normally applied by the API server side.
To enforce default values in parameter, use SetDefaults or WithDefaults.
func NewPetUploadImageParamsWithContext ¶
func NewPetUploadImageParamsWithContext(ctx context.Context) *PetUploadImageParams
NewPetUploadImageParamsWithContext creates a new PetUploadImageParams object with the ability to set a context for a request.
func NewPetUploadImageParamsWithHTTPClient ¶
func NewPetUploadImageParamsWithHTTPClient(client *http.Client) *PetUploadImageParams
NewPetUploadImageParamsWithHTTPClient creates a new PetUploadImageParams object with the ability to set a custom HTTPClient for a request.
func NewPetUploadImageParamsWithTimeout ¶
func NewPetUploadImageParamsWithTimeout(timeout time.Duration) *PetUploadImageParams
NewPetUploadImageParamsWithTimeout creates a new PetUploadImageParams object with the ability to set a timeout on a request.
func (*PetUploadImageParams) SetAdditionalMetadata ¶
func (o *PetUploadImageParams) SetAdditionalMetadata(additionalMetadata *string)
SetAdditionalMetadata adds the additionalMetadata to the pet upload image params
func (*PetUploadImageParams) SetContext ¶
func (o *PetUploadImageParams) SetContext(ctx context.Context)
SetContext adds the context to the pet upload image params
func (*PetUploadImageParams) SetDefaults ¶
func (o *PetUploadImageParams) SetDefaults()
SetDefaults hydrates default values in the pet upload image params (not the query body).
All values with no default are reset to their zero value.
func (*PetUploadImageParams) SetFile ¶
func (o *PetUploadImageParams) SetFile(file runtime.NamedReadCloser)
SetFile adds the file to the pet upload image params
func (*PetUploadImageParams) SetHTTPClient ¶
func (o *PetUploadImageParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the pet upload image params
func (*PetUploadImageParams) SetPetID ¶
func (o *PetUploadImageParams) SetPetID(petID int64)
SetPetID adds the petId to the pet upload image params
func (*PetUploadImageParams) SetTimeout ¶
func (o *PetUploadImageParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the pet upload image params
func (*PetUploadImageParams) WithAdditionalMetadata ¶
func (o *PetUploadImageParams) WithAdditionalMetadata(additionalMetadata *string) *PetUploadImageParams
WithAdditionalMetadata adds the additionalMetadata to the pet upload image params
func (*PetUploadImageParams) WithContext ¶
func (o *PetUploadImageParams) WithContext(ctx context.Context) *PetUploadImageParams
WithContext adds the context to the pet upload image params
func (*PetUploadImageParams) WithDefaults ¶
func (o *PetUploadImageParams) WithDefaults() *PetUploadImageParams
WithDefaults hydrates default values in the pet upload image params (not the query body).
All values with no default are reset to their zero value.
func (*PetUploadImageParams) WithFile ¶
func (o *PetUploadImageParams) WithFile(file runtime.NamedReadCloser) *PetUploadImageParams
WithFile adds the file to the pet upload image params
func (*PetUploadImageParams) WithHTTPClient ¶
func (o *PetUploadImageParams) WithHTTPClient(client *http.Client) *PetUploadImageParams
WithHTTPClient adds the HTTPClient to the pet upload image params
func (*PetUploadImageParams) WithPetID ¶
func (o *PetUploadImageParams) WithPetID(petID int64) *PetUploadImageParams
WithPetID adds the petID to the pet upload image params
func (*PetUploadImageParams) WithTimeout ¶
func (o *PetUploadImageParams) WithTimeout(timeout time.Duration) *PetUploadImageParams
WithTimeout adds the timeout to the pet upload image params
func (*PetUploadImageParams) WriteToRequest ¶
func (o *PetUploadImageParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type PetUploadImageReader ¶
type PetUploadImageReader struct {
// contains filtered or unexported fields
}
PetUploadImageReader is a Reader for the PetUploadImage structure.
func (*PetUploadImageReader) ReadResponse ¶
func (o *PetUploadImageReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- pet_client.go
- pet_create_parameters.go
- pet_create_responses.go
- pet_delete_parameters.go
- pet_delete_responses.go
- pet_get_parameters.go
- pet_get_responses.go
- pet_list_parameters.go
- pet_list_responses.go
- pet_update_parameters.go
- pet_update_responses.go
- pet_upload_image_parameters.go
- pet_upload_image_responses.go