store

package
v0.0.0-...-a784d27 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type API

type API interface {
	/*
	   InventoryGet returns pet inventories by status*/
	InventoryGet(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error)
	/*
	   OrderCreate places an order for a pet*/
	OrderCreate(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error)
	/*
	   OrderDelete deletes purchase order by ID

	   For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors*/
	OrderDelete(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error)
	/*
	   OrderGet finds purchase order by ID

	   For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions*/
	OrderGet(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error)
}

API is the interface of the store client

type Client

type Client struct {
	// contains filtered or unexported fields
}

Client for store API

func New

func New(transport runtime.ClientTransport, formats strfmt.Registry, authInfo runtime.ClientAuthInfoWriter) *Client

New creates a new store API client.

func (*Client) InventoryGet

func (a *Client) InventoryGet(ctx context.Context, params *InventoryGetParams) (*InventoryGetOK, error)

InventoryGet returns pet inventories by status

func (*Client) OrderCreate

func (a *Client) OrderCreate(ctx context.Context, params *OrderCreateParams) (*OrderCreateOK, error)

OrderCreate places an order for a pet

func (*Client) OrderDelete

func (a *Client) OrderDelete(ctx context.Context, params *OrderDeleteParams) (*OrderDeleteNoContent, error)

OrderDelete deletes purchase order by ID

For valid response try integer IDs with positive integer value. Negative or non-integer values will generate API errors

func (*Client) OrderGet

func (a *Client) OrderGet(ctx context.Context, params *OrderGetParams) (*OrderGetOK, error)

OrderGet finds purchase order by ID

For valid response try integer IDs with value >= 1 and <= 10. Other values will generated exceptions

type InventoryGetOK

type InventoryGetOK struct {
	Payload map[string]int32
}

InventoryGetOK describes a response with status code 200, with default header values.

successful operation

func NewInventoryGetOK

func NewInventoryGetOK() *InventoryGetOK

NewInventoryGetOK creates a InventoryGetOK with default headers values

func (*InventoryGetOK) Code

func (o *InventoryGetOK) Code() int

Code gets the status code for the inventory get o k response

func (*InventoryGetOK) Error

func (o *InventoryGetOK) Error() string

func (*InventoryGetOK) GetPayload

func (o *InventoryGetOK) GetPayload() map[string]int32

func (*InventoryGetOK) IsClientError

func (o *InventoryGetOK) IsClientError() bool

IsClientError returns true when this inventory get o k response has a 4xx status code

func (*InventoryGetOK) IsCode

func (o *InventoryGetOK) IsCode(code int) bool

IsCode returns true when this inventory get o k response a status code equal to that given

func (*InventoryGetOK) IsRedirect

func (o *InventoryGetOK) IsRedirect() bool

IsRedirect returns true when this inventory get o k response has a 3xx status code

func (*InventoryGetOK) IsServerError

func (o *InventoryGetOK) IsServerError() bool

IsServerError returns true when this inventory get o k response has a 5xx status code

func (*InventoryGetOK) IsSuccess

func (o *InventoryGetOK) IsSuccess() bool

IsSuccess returns true when this inventory get o k response has a 2xx status code

func (*InventoryGetOK) String

func (o *InventoryGetOK) String() string

type InventoryGetParams

type InventoryGetParams struct {
	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

InventoryGetParams contains all the parameters to send to the API endpoint

for the inventory get operation.

Typically these are written to a http.Request.

func NewInventoryGetParams

func NewInventoryGetParams() *InventoryGetParams

NewInventoryGetParams creates a new InventoryGetParams 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 NewInventoryGetParamsWithContext

func NewInventoryGetParamsWithContext(ctx context.Context) *InventoryGetParams

NewInventoryGetParamsWithContext creates a new InventoryGetParams object with the ability to set a context for a request.

func NewInventoryGetParamsWithHTTPClient

func NewInventoryGetParamsWithHTTPClient(client *http.Client) *InventoryGetParams

NewInventoryGetParamsWithHTTPClient creates a new InventoryGetParams object with the ability to set a custom HTTPClient for a request.

func NewInventoryGetParamsWithTimeout

func NewInventoryGetParamsWithTimeout(timeout time.Duration) *InventoryGetParams

NewInventoryGetParamsWithTimeout creates a new InventoryGetParams object with the ability to set a timeout on a request.

func (*InventoryGetParams) SetContext

func (o *InventoryGetParams) SetContext(ctx context.Context)

SetContext adds the context to the inventory get params

func (*InventoryGetParams) SetDefaults

func (o *InventoryGetParams) SetDefaults()

SetDefaults hydrates default values in the inventory get params (not the query body).

All values with no default are reset to their zero value.

func (*InventoryGetParams) SetHTTPClient

func (o *InventoryGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the inventory get params

func (*InventoryGetParams) SetTimeout

func (o *InventoryGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the inventory get params

func (*InventoryGetParams) WithContext

WithContext adds the context to the inventory get params

func (*InventoryGetParams) WithDefaults

func (o *InventoryGetParams) WithDefaults() *InventoryGetParams

WithDefaults hydrates default values in the inventory get params (not the query body).

All values with no default are reset to their zero value.

func (*InventoryGetParams) WithHTTPClient

func (o *InventoryGetParams) WithHTTPClient(client *http.Client) *InventoryGetParams

WithHTTPClient adds the HTTPClient to the inventory get params

func (*InventoryGetParams) WithTimeout

func (o *InventoryGetParams) WithTimeout(timeout time.Duration) *InventoryGetParams

WithTimeout adds the timeout to the inventory get params

func (*InventoryGetParams) WriteToRequest

func (o *InventoryGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type InventoryGetReader

type InventoryGetReader struct {
	// contains filtered or unexported fields
}

InventoryGetReader is a Reader for the InventoryGet structure.

func (*InventoryGetReader) ReadResponse

func (o *InventoryGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrderCreateBadRequest

type OrderCreateBadRequest struct {
}

OrderCreateBadRequest describes a response with status code 400, with default header values.

Invalid Order

func NewOrderCreateBadRequest

func NewOrderCreateBadRequest() *OrderCreateBadRequest

NewOrderCreateBadRequest creates a OrderCreateBadRequest with default headers values

func (*OrderCreateBadRequest) Code

func (o *OrderCreateBadRequest) Code() int

Code gets the status code for the order create bad request response

func (*OrderCreateBadRequest) Error

func (o *OrderCreateBadRequest) Error() string

func (*OrderCreateBadRequest) IsClientError

func (o *OrderCreateBadRequest) IsClientError() bool

IsClientError returns true when this order create bad request response has a 4xx status code

func (*OrderCreateBadRequest) IsCode

func (o *OrderCreateBadRequest) IsCode(code int) bool

IsCode returns true when this order create bad request response a status code equal to that given

func (*OrderCreateBadRequest) IsRedirect

func (o *OrderCreateBadRequest) IsRedirect() bool

IsRedirect returns true when this order create bad request response has a 3xx status code

func (*OrderCreateBadRequest) IsServerError

func (o *OrderCreateBadRequest) IsServerError() bool

IsServerError returns true when this order create bad request response has a 5xx status code

func (*OrderCreateBadRequest) IsSuccess

func (o *OrderCreateBadRequest) IsSuccess() bool

IsSuccess returns true when this order create bad request response has a 2xx status code

func (*OrderCreateBadRequest) String

func (o *OrderCreateBadRequest) String() string

type OrderCreateOK

type OrderCreateOK struct {
	Payload *models.Order
}

OrderCreateOK describes a response with status code 200, with default header values.

successful operation

func NewOrderCreateOK

func NewOrderCreateOK() *OrderCreateOK

NewOrderCreateOK creates a OrderCreateOK with default headers values

func (*OrderCreateOK) Code

func (o *OrderCreateOK) Code() int

Code gets the status code for the order create o k response

func (*OrderCreateOK) Error

func (o *OrderCreateOK) Error() string

func (*OrderCreateOK) GetPayload

func (o *OrderCreateOK) GetPayload() *models.Order

func (*OrderCreateOK) IsClientError

func (o *OrderCreateOK) IsClientError() bool

IsClientError returns true when this order create o k response has a 4xx status code

func (*OrderCreateOK) IsCode

func (o *OrderCreateOK) IsCode(code int) bool

IsCode returns true when this order create o k response a status code equal to that given

func (*OrderCreateOK) IsRedirect

func (o *OrderCreateOK) IsRedirect() bool

IsRedirect returns true when this order create o k response has a 3xx status code

func (*OrderCreateOK) IsServerError

func (o *OrderCreateOK) IsServerError() bool

IsServerError returns true when this order create o k response has a 5xx status code

func (*OrderCreateOK) IsSuccess

func (o *OrderCreateOK) IsSuccess() bool

IsSuccess returns true when this order create o k response has a 2xx status code

func (*OrderCreateOK) String

func (o *OrderCreateOK) String() string

type OrderCreateParams

type OrderCreateParams struct {

	/* Body.

	   order placed for purchasing the pet
	*/
	Body *models.Order

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrderCreateParams contains all the parameters to send to the API endpoint

for the order create operation.

Typically these are written to a http.Request.

func NewOrderCreateParams

func NewOrderCreateParams() *OrderCreateParams

NewOrderCreateParams creates a new OrderCreateParams 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 NewOrderCreateParamsWithContext

func NewOrderCreateParamsWithContext(ctx context.Context) *OrderCreateParams

NewOrderCreateParamsWithContext creates a new OrderCreateParams object with the ability to set a context for a request.

func NewOrderCreateParamsWithHTTPClient

func NewOrderCreateParamsWithHTTPClient(client *http.Client) *OrderCreateParams

NewOrderCreateParamsWithHTTPClient creates a new OrderCreateParams object with the ability to set a custom HTTPClient for a request.

func NewOrderCreateParamsWithTimeout

func NewOrderCreateParamsWithTimeout(timeout time.Duration) *OrderCreateParams

NewOrderCreateParamsWithTimeout creates a new OrderCreateParams object with the ability to set a timeout on a request.

func (*OrderCreateParams) SetBody

func (o *OrderCreateParams) SetBody(body *models.Order)

SetBody adds the body to the order create params

func (*OrderCreateParams) SetContext

func (o *OrderCreateParams) SetContext(ctx context.Context)

SetContext adds the context to the order create params

func (*OrderCreateParams) SetDefaults

func (o *OrderCreateParams) SetDefaults()

SetDefaults hydrates default values in the order create params (not the query body).

All values with no default are reset to their zero value.

func (*OrderCreateParams) SetHTTPClient

func (o *OrderCreateParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the order create params

func (*OrderCreateParams) SetTimeout

func (o *OrderCreateParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the order create params

func (*OrderCreateParams) WithBody

func (o *OrderCreateParams) WithBody(body *models.Order) *OrderCreateParams

WithBody adds the body to the order create params

func (*OrderCreateParams) WithContext

func (o *OrderCreateParams) WithContext(ctx context.Context) *OrderCreateParams

WithContext adds the context to the order create params

func (*OrderCreateParams) WithDefaults

func (o *OrderCreateParams) WithDefaults() *OrderCreateParams

WithDefaults hydrates default values in the order create params (not the query body).

All values with no default are reset to their zero value.

func (*OrderCreateParams) WithHTTPClient

func (o *OrderCreateParams) WithHTTPClient(client *http.Client) *OrderCreateParams

WithHTTPClient adds the HTTPClient to the order create params

func (*OrderCreateParams) WithTimeout

func (o *OrderCreateParams) WithTimeout(timeout time.Duration) *OrderCreateParams

WithTimeout adds the timeout to the order create params

func (*OrderCreateParams) WriteToRequest

func (o *OrderCreateParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrderCreateReader

type OrderCreateReader struct {
	// contains filtered or unexported fields
}

OrderCreateReader is a Reader for the OrderCreate structure.

func (*OrderCreateReader) ReadResponse

func (o *OrderCreateReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrderDeleteBadRequest

type OrderDeleteBadRequest struct {
}

OrderDeleteBadRequest describes a response with status code 400, with default header values.

Invalid ID supplied

func NewOrderDeleteBadRequest

func NewOrderDeleteBadRequest() *OrderDeleteBadRequest

NewOrderDeleteBadRequest creates a OrderDeleteBadRequest with default headers values

func (*OrderDeleteBadRequest) Code

func (o *OrderDeleteBadRequest) Code() int

Code gets the status code for the order delete bad request response

func (*OrderDeleteBadRequest) Error

func (o *OrderDeleteBadRequest) Error() string

func (*OrderDeleteBadRequest) IsClientError

func (o *OrderDeleteBadRequest) IsClientError() bool

IsClientError returns true when this order delete bad request response has a 4xx status code

func (*OrderDeleteBadRequest) IsCode

func (o *OrderDeleteBadRequest) IsCode(code int) bool

IsCode returns true when this order delete bad request response a status code equal to that given

func (*OrderDeleteBadRequest) IsRedirect

func (o *OrderDeleteBadRequest) IsRedirect() bool

IsRedirect returns true when this order delete bad request response has a 3xx status code

func (*OrderDeleteBadRequest) IsServerError

func (o *OrderDeleteBadRequest) IsServerError() bool

IsServerError returns true when this order delete bad request response has a 5xx status code

func (*OrderDeleteBadRequest) IsSuccess

func (o *OrderDeleteBadRequest) IsSuccess() bool

IsSuccess returns true when this order delete bad request response has a 2xx status code

func (*OrderDeleteBadRequest) String

func (o *OrderDeleteBadRequest) String() string

type OrderDeleteNoContent

type OrderDeleteNoContent struct {
}

OrderDeleteNoContent describes a response with status code 204, with default header values.

Deleted successfully

func NewOrderDeleteNoContent

func NewOrderDeleteNoContent() *OrderDeleteNoContent

NewOrderDeleteNoContent creates a OrderDeleteNoContent with default headers values

func (*OrderDeleteNoContent) Code

func (o *OrderDeleteNoContent) Code() int

Code gets the status code for the order delete no content response

func (*OrderDeleteNoContent) Error

func (o *OrderDeleteNoContent) Error() string

func (*OrderDeleteNoContent) IsClientError

func (o *OrderDeleteNoContent) IsClientError() bool

IsClientError returns true when this order delete no content response has a 4xx status code

func (*OrderDeleteNoContent) IsCode

func (o *OrderDeleteNoContent) IsCode(code int) bool

IsCode returns true when this order delete no content response a status code equal to that given

func (*OrderDeleteNoContent) IsRedirect

func (o *OrderDeleteNoContent) IsRedirect() bool

IsRedirect returns true when this order delete no content response has a 3xx status code

func (*OrderDeleteNoContent) IsServerError

func (o *OrderDeleteNoContent) IsServerError() bool

IsServerError returns true when this order delete no content response has a 5xx status code

func (*OrderDeleteNoContent) IsSuccess

func (o *OrderDeleteNoContent) IsSuccess() bool

IsSuccess returns true when this order delete no content response has a 2xx status code

func (*OrderDeleteNoContent) String

func (o *OrderDeleteNoContent) String() string

type OrderDeleteNotFound

type OrderDeleteNotFound struct {
}

OrderDeleteNotFound describes a response with status code 404, with default header values.

Order not found

func NewOrderDeleteNotFound

func NewOrderDeleteNotFound() *OrderDeleteNotFound

NewOrderDeleteNotFound creates a OrderDeleteNotFound with default headers values

func (*OrderDeleteNotFound) Code

func (o *OrderDeleteNotFound) Code() int

Code gets the status code for the order delete not found response

func (*OrderDeleteNotFound) Error

func (o *OrderDeleteNotFound) Error() string

func (*OrderDeleteNotFound) IsClientError

func (o *OrderDeleteNotFound) IsClientError() bool

IsClientError returns true when this order delete not found response has a 4xx status code

func (*OrderDeleteNotFound) IsCode

func (o *OrderDeleteNotFound) IsCode(code int) bool

IsCode returns true when this order delete not found response a status code equal to that given

func (*OrderDeleteNotFound) IsRedirect

func (o *OrderDeleteNotFound) IsRedirect() bool

IsRedirect returns true when this order delete not found response has a 3xx status code

func (*OrderDeleteNotFound) IsServerError

func (o *OrderDeleteNotFound) IsServerError() bool

IsServerError returns true when this order delete not found response has a 5xx status code

func (*OrderDeleteNotFound) IsSuccess

func (o *OrderDeleteNotFound) IsSuccess() bool

IsSuccess returns true when this order delete not found response has a 2xx status code

func (*OrderDeleteNotFound) String

func (o *OrderDeleteNotFound) String() string

type OrderDeleteParams

type OrderDeleteParams struct {

	/* OrderID.

	   ID of the order that needs to be deleted

	   Format: int64
	*/
	OrderID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrderDeleteParams contains all the parameters to send to the API endpoint

for the order delete operation.

Typically these are written to a http.Request.

func NewOrderDeleteParams

func NewOrderDeleteParams() *OrderDeleteParams

NewOrderDeleteParams creates a new OrderDeleteParams 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 NewOrderDeleteParamsWithContext

func NewOrderDeleteParamsWithContext(ctx context.Context) *OrderDeleteParams

NewOrderDeleteParamsWithContext creates a new OrderDeleteParams object with the ability to set a context for a request.

func NewOrderDeleteParamsWithHTTPClient

func NewOrderDeleteParamsWithHTTPClient(client *http.Client) *OrderDeleteParams

NewOrderDeleteParamsWithHTTPClient creates a new OrderDeleteParams object with the ability to set a custom HTTPClient for a request.

func NewOrderDeleteParamsWithTimeout

func NewOrderDeleteParamsWithTimeout(timeout time.Duration) *OrderDeleteParams

NewOrderDeleteParamsWithTimeout creates a new OrderDeleteParams object with the ability to set a timeout on a request.

func (*OrderDeleteParams) SetContext

func (o *OrderDeleteParams) SetContext(ctx context.Context)

SetContext adds the context to the order delete params

func (*OrderDeleteParams) SetDefaults

func (o *OrderDeleteParams) SetDefaults()

SetDefaults hydrates default values in the order delete params (not the query body).

All values with no default are reset to their zero value.

func (*OrderDeleteParams) SetHTTPClient

func (o *OrderDeleteParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the order delete params

func (*OrderDeleteParams) SetOrderID

func (o *OrderDeleteParams) SetOrderID(orderID int64)

SetOrderID adds the orderId to the order delete params

func (*OrderDeleteParams) SetTimeout

func (o *OrderDeleteParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the order delete params

func (*OrderDeleteParams) WithContext

func (o *OrderDeleteParams) WithContext(ctx context.Context) *OrderDeleteParams

WithContext adds the context to the order delete params

func (*OrderDeleteParams) WithDefaults

func (o *OrderDeleteParams) WithDefaults() *OrderDeleteParams

WithDefaults hydrates default values in the order delete params (not the query body).

All values with no default are reset to their zero value.

func (*OrderDeleteParams) WithHTTPClient

func (o *OrderDeleteParams) WithHTTPClient(client *http.Client) *OrderDeleteParams

WithHTTPClient adds the HTTPClient to the order delete params

func (*OrderDeleteParams) WithOrderID

func (o *OrderDeleteParams) WithOrderID(orderID int64) *OrderDeleteParams

WithOrderID adds the orderID to the order delete params

func (*OrderDeleteParams) WithTimeout

func (o *OrderDeleteParams) WithTimeout(timeout time.Duration) *OrderDeleteParams

WithTimeout adds the timeout to the order delete params

func (*OrderDeleteParams) WriteToRequest

func (o *OrderDeleteParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrderDeleteReader

type OrderDeleteReader struct {
	// contains filtered or unexported fields
}

OrderDeleteReader is a Reader for the OrderDelete structure.

func (*OrderDeleteReader) ReadResponse

func (o *OrderDeleteReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

type OrderGetBadRequest

type OrderGetBadRequest struct {
}

OrderGetBadRequest describes a response with status code 400, with default header values.

Invalid ID supplied

func NewOrderGetBadRequest

func NewOrderGetBadRequest() *OrderGetBadRequest

NewOrderGetBadRequest creates a OrderGetBadRequest with default headers values

func (*OrderGetBadRequest) Code

func (o *OrderGetBadRequest) Code() int

Code gets the status code for the order get bad request response

func (*OrderGetBadRequest) Error

func (o *OrderGetBadRequest) Error() string

func (*OrderGetBadRequest) IsClientError

func (o *OrderGetBadRequest) IsClientError() bool

IsClientError returns true when this order get bad request response has a 4xx status code

func (*OrderGetBadRequest) IsCode

func (o *OrderGetBadRequest) IsCode(code int) bool

IsCode returns true when this order get bad request response a status code equal to that given

func (*OrderGetBadRequest) IsRedirect

func (o *OrderGetBadRequest) IsRedirect() bool

IsRedirect returns true when this order get bad request response has a 3xx status code

func (*OrderGetBadRequest) IsServerError

func (o *OrderGetBadRequest) IsServerError() bool

IsServerError returns true when this order get bad request response has a 5xx status code

func (*OrderGetBadRequest) IsSuccess

func (o *OrderGetBadRequest) IsSuccess() bool

IsSuccess returns true when this order get bad request response has a 2xx status code

func (*OrderGetBadRequest) String

func (o *OrderGetBadRequest) String() string

type OrderGetNotFound

type OrderGetNotFound struct {
}

OrderGetNotFound describes a response with status code 404, with default header values.

Order not found

func NewOrderGetNotFound

func NewOrderGetNotFound() *OrderGetNotFound

NewOrderGetNotFound creates a OrderGetNotFound with default headers values

func (*OrderGetNotFound) Code

func (o *OrderGetNotFound) Code() int

Code gets the status code for the order get not found response

func (*OrderGetNotFound) Error

func (o *OrderGetNotFound) Error() string

func (*OrderGetNotFound) IsClientError

func (o *OrderGetNotFound) IsClientError() bool

IsClientError returns true when this order get not found response has a 4xx status code

func (*OrderGetNotFound) IsCode

func (o *OrderGetNotFound) IsCode(code int) bool

IsCode returns true when this order get not found response a status code equal to that given

func (*OrderGetNotFound) IsRedirect

func (o *OrderGetNotFound) IsRedirect() bool

IsRedirect returns true when this order get not found response has a 3xx status code

func (*OrderGetNotFound) IsServerError

func (o *OrderGetNotFound) IsServerError() bool

IsServerError returns true when this order get not found response has a 5xx status code

func (*OrderGetNotFound) IsSuccess

func (o *OrderGetNotFound) IsSuccess() bool

IsSuccess returns true when this order get not found response has a 2xx status code

func (*OrderGetNotFound) String

func (o *OrderGetNotFound) String() string

type OrderGetOK

type OrderGetOK struct {
	Payload *models.Order
}

OrderGetOK describes a response with status code 200, with default header values.

successful operation

func NewOrderGetOK

func NewOrderGetOK() *OrderGetOK

NewOrderGetOK creates a OrderGetOK with default headers values

func (*OrderGetOK) Code

func (o *OrderGetOK) Code() int

Code gets the status code for the order get o k response

func (*OrderGetOK) Error

func (o *OrderGetOK) Error() string

func (*OrderGetOK) GetPayload

func (o *OrderGetOK) GetPayload() *models.Order

func (*OrderGetOK) IsClientError

func (o *OrderGetOK) IsClientError() bool

IsClientError returns true when this order get o k response has a 4xx status code

func (*OrderGetOK) IsCode

func (o *OrderGetOK) IsCode(code int) bool

IsCode returns true when this order get o k response a status code equal to that given

func (*OrderGetOK) IsRedirect

func (o *OrderGetOK) IsRedirect() bool

IsRedirect returns true when this order get o k response has a 3xx status code

func (*OrderGetOK) IsServerError

func (o *OrderGetOK) IsServerError() bool

IsServerError returns true when this order get o k response has a 5xx status code

func (*OrderGetOK) IsSuccess

func (o *OrderGetOK) IsSuccess() bool

IsSuccess returns true when this order get o k response has a 2xx status code

func (*OrderGetOK) String

func (o *OrderGetOK) String() string

type OrderGetParams

type OrderGetParams struct {

	/* OrderID.

	   ID of pet that needs to be fetched

	   Format: int64
	*/
	OrderID int64

	Context    context.Context
	HTTPClient *http.Client
	// contains filtered or unexported fields
}

OrderGetParams contains all the parameters to send to the API endpoint

for the order get operation.

Typically these are written to a http.Request.

func NewOrderGetParams

func NewOrderGetParams() *OrderGetParams

NewOrderGetParams creates a new OrderGetParams 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 NewOrderGetParamsWithContext

func NewOrderGetParamsWithContext(ctx context.Context) *OrderGetParams

NewOrderGetParamsWithContext creates a new OrderGetParams object with the ability to set a context for a request.

func NewOrderGetParamsWithHTTPClient

func NewOrderGetParamsWithHTTPClient(client *http.Client) *OrderGetParams

NewOrderGetParamsWithHTTPClient creates a new OrderGetParams object with the ability to set a custom HTTPClient for a request.

func NewOrderGetParamsWithTimeout

func NewOrderGetParamsWithTimeout(timeout time.Duration) *OrderGetParams

NewOrderGetParamsWithTimeout creates a new OrderGetParams object with the ability to set a timeout on a request.

func (*OrderGetParams) SetContext

func (o *OrderGetParams) SetContext(ctx context.Context)

SetContext adds the context to the order get params

func (*OrderGetParams) SetDefaults

func (o *OrderGetParams) SetDefaults()

SetDefaults hydrates default values in the order get params (not the query body).

All values with no default are reset to their zero value.

func (*OrderGetParams) SetHTTPClient

func (o *OrderGetParams) SetHTTPClient(client *http.Client)

SetHTTPClient adds the HTTPClient to the order get params

func (*OrderGetParams) SetOrderID

func (o *OrderGetParams) SetOrderID(orderID int64)

SetOrderID adds the orderId to the order get params

func (*OrderGetParams) SetTimeout

func (o *OrderGetParams) SetTimeout(timeout time.Duration)

SetTimeout adds the timeout to the order get params

func (*OrderGetParams) WithContext

func (o *OrderGetParams) WithContext(ctx context.Context) *OrderGetParams

WithContext adds the context to the order get params

func (*OrderGetParams) WithDefaults

func (o *OrderGetParams) WithDefaults() *OrderGetParams

WithDefaults hydrates default values in the order get params (not the query body).

All values with no default are reset to their zero value.

func (*OrderGetParams) WithHTTPClient

func (o *OrderGetParams) WithHTTPClient(client *http.Client) *OrderGetParams

WithHTTPClient adds the HTTPClient to the order get params

func (*OrderGetParams) WithOrderID

func (o *OrderGetParams) WithOrderID(orderID int64) *OrderGetParams

WithOrderID adds the orderID to the order get params

func (*OrderGetParams) WithTimeout

func (o *OrderGetParams) WithTimeout(timeout time.Duration) *OrderGetParams

WithTimeout adds the timeout to the order get params

func (*OrderGetParams) WriteToRequest

func (o *OrderGetParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error

WriteToRequest writes these params to a swagger request

type OrderGetReader

type OrderGetReader struct {
	// contains filtered or unexported fields
}

OrderGetReader is a Reader for the OrderGet structure.

func (*OrderGetReader) ReadResponse

func (o *OrderGetReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)

ReadResponse reads a server response into the received o.

Jump to

Keyboard shortcuts

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