Documentation ¶
Index ¶
- type Client
- func (a *Client) FindOwnerByID(params *FindOwnerByIDParams) (*FindOwnerByIDOK, error)
- func (a *Client) FindPetsByOwnerID(params *FindPetsByOwnerIDParams) (*FindPetsByOwnerIDOK, error)
- func (a *Client) FindSensorAvgBySensorIDAndDay(params *FindSensorAvgBySensorIDAndDayParams) (*FindSensorAvgBySensorIDAndDayOK, error)
- func (a *Client) FindSensorDataBySensorIDAndTimeRange(params *FindSensorDataBySensorIDAndTimeRangeParams) (*FindSensorDataBySensorIDAndTimeRangeOK, error)
- func (a *Client) FindSensorsByPetID(params *FindSensorsByPetIDParams) (*FindSensorsByPetIDOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- type ClientService
- type FindOwnerByIDDefault
- type FindOwnerByIDOK
- type FindOwnerByIDParams
- func (o *FindOwnerByIDParams) SetContext(ctx context.Context)
- func (o *FindOwnerByIDParams) SetHTTPClient(client *http.Client)
- func (o *FindOwnerByIDParams) SetID(id strfmt.UUID)
- func (o *FindOwnerByIDParams) SetTimeout(timeout time.Duration)
- func (o *FindOwnerByIDParams) WithContext(ctx context.Context) *FindOwnerByIDParams
- func (o *FindOwnerByIDParams) WithHTTPClient(client *http.Client) *FindOwnerByIDParams
- func (o *FindOwnerByIDParams) WithID(id strfmt.UUID) *FindOwnerByIDParams
- func (o *FindOwnerByIDParams) WithTimeout(timeout time.Duration) *FindOwnerByIDParams
- func (o *FindOwnerByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindOwnerByIDReader
- type FindPetsByOwnerIDDefault
- type FindPetsByOwnerIDOK
- type FindPetsByOwnerIDParams
- func NewFindPetsByOwnerIDParams() *FindPetsByOwnerIDParams
- func NewFindPetsByOwnerIDParamsWithContext(ctx context.Context) *FindPetsByOwnerIDParams
- func NewFindPetsByOwnerIDParamsWithHTTPClient(client *http.Client) *FindPetsByOwnerIDParams
- func NewFindPetsByOwnerIDParamsWithTimeout(timeout time.Duration) *FindPetsByOwnerIDParams
- func (o *FindPetsByOwnerIDParams) SetContext(ctx context.Context)
- func (o *FindPetsByOwnerIDParams) SetHTTPClient(client *http.Client)
- func (o *FindPetsByOwnerIDParams) SetID(id strfmt.UUID)
- func (o *FindPetsByOwnerIDParams) SetTimeout(timeout time.Duration)
- func (o *FindPetsByOwnerIDParams) WithContext(ctx context.Context) *FindPetsByOwnerIDParams
- func (o *FindPetsByOwnerIDParams) WithHTTPClient(client *http.Client) *FindPetsByOwnerIDParams
- func (o *FindPetsByOwnerIDParams) WithID(id strfmt.UUID) *FindPetsByOwnerIDParams
- func (o *FindPetsByOwnerIDParams) WithTimeout(timeout time.Duration) *FindPetsByOwnerIDParams
- func (o *FindPetsByOwnerIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindPetsByOwnerIDReader
- type FindSensorAvgBySensorIDAndDayDefault
- type FindSensorAvgBySensorIDAndDayOK
- type FindSensorAvgBySensorIDAndDayParams
- func NewFindSensorAvgBySensorIDAndDayParams() *FindSensorAvgBySensorIDAndDayParams
- func NewFindSensorAvgBySensorIDAndDayParamsWithContext(ctx context.Context) *FindSensorAvgBySensorIDAndDayParams
- func NewFindSensorAvgBySensorIDAndDayParamsWithHTTPClient(client *http.Client) *FindSensorAvgBySensorIDAndDayParams
- func NewFindSensorAvgBySensorIDAndDayParamsWithTimeout(timeout time.Duration) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) SetContext(ctx context.Context)
- func (o *FindSensorAvgBySensorIDAndDayParams) SetDay(day strfmt.Date)
- func (o *FindSensorAvgBySensorIDAndDayParams) SetHTTPClient(client *http.Client)
- func (o *FindSensorAvgBySensorIDAndDayParams) SetID(id strfmt.UUID)
- func (o *FindSensorAvgBySensorIDAndDayParams) SetP(p strfmt.UUID)
- func (o *FindSensorAvgBySensorIDAndDayParams) SetTimeout(timeout time.Duration)
- func (o *FindSensorAvgBySensorIDAndDayParams) WithContext(ctx context.Context) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WithDay(day strfmt.Date) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WithHTTPClient(client *http.Client) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WithID(id strfmt.UUID) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WithP(p strfmt.UUID) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WithTimeout(timeout time.Duration) *FindSensorAvgBySensorIDAndDayParams
- func (o *FindSensorAvgBySensorIDAndDayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSensorAvgBySensorIDAndDayReader
- type FindSensorDataBySensorIDAndTimeRangeDefault
- type FindSensorDataBySensorIDAndTimeRangeOK
- type FindSensorDataBySensorIDAndTimeRangeParams
- func NewFindSensorDataBySensorIDAndTimeRangeParams() *FindSensorDataBySensorIDAndTimeRangeParams
- func NewFindSensorDataBySensorIDAndTimeRangeParamsWithContext(ctx context.Context) *FindSensorDataBySensorIDAndTimeRangeParams
- func NewFindSensorDataBySensorIDAndTimeRangeParamsWithHTTPClient(client *http.Client) *FindSensorDataBySensorIDAndTimeRangeParams
- func NewFindSensorDataBySensorIDAndTimeRangeParamsWithTimeout(timeout time.Duration) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetContext(ctx context.Context)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetFrom(from strfmt.DateTime)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetHTTPClient(client *http.Client)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetID(id strfmt.UUID)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetP(p strfmt.UUID)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetTimeout(timeout time.Duration)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetTo(to strfmt.DateTime)
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithContext(ctx context.Context) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithFrom(from strfmt.DateTime) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithHTTPClient(client *http.Client) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithID(id strfmt.UUID) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithP(p strfmt.UUID) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithTimeout(timeout time.Duration) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithTo(to strfmt.DateTime) *FindSensorDataBySensorIDAndTimeRangeParams
- func (o *FindSensorDataBySensorIDAndTimeRangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSensorDataBySensorIDAndTimeRangeReader
- type FindSensorsByPetIDDefault
- type FindSensorsByPetIDOK
- type FindSensorsByPetIDParams
- func NewFindSensorsByPetIDParams() *FindSensorsByPetIDParams
- func NewFindSensorsByPetIDParamsWithContext(ctx context.Context) *FindSensorsByPetIDParams
- func NewFindSensorsByPetIDParamsWithHTTPClient(client *http.Client) *FindSensorsByPetIDParams
- func NewFindSensorsByPetIDParamsWithTimeout(timeout time.Duration) *FindSensorsByPetIDParams
- func (o *FindSensorsByPetIDParams) SetContext(ctx context.Context)
- func (o *FindSensorsByPetIDParams) SetHTTPClient(client *http.Client)
- func (o *FindSensorsByPetIDParams) SetID(id strfmt.UUID)
- func (o *FindSensorsByPetIDParams) SetTimeout(timeout time.Duration)
- func (o *FindSensorsByPetIDParams) WithContext(ctx context.Context) *FindSensorsByPetIDParams
- func (o *FindSensorsByPetIDParams) WithHTTPClient(client *http.Client) *FindSensorsByPetIDParams
- func (o *FindSensorsByPetIDParams) WithID(id strfmt.UUID) *FindSensorsByPetIDParams
- func (o *FindSensorsByPetIDParams) WithTimeout(timeout time.Duration) *FindSensorsByPetIDParams
- func (o *FindSensorsByPetIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type FindSensorsByPetIDReader
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client for operations API
func (*Client) FindOwnerByID ¶
func (a *Client) FindOwnerByID(params *FindOwnerByIDParams) (*FindOwnerByIDOK, error)
FindOwnerByID Find an owner with a specific ID
func (*Client) FindPetsByOwnerID ¶
func (a *Client) FindPetsByOwnerID(params *FindPetsByOwnerIDParams) (*FindPetsByOwnerIDOK, error)
FindPetsByOwnerID Find the Pets that the owner tracks
func (*Client) FindSensorAvgBySensorIDAndDay ¶
func (a *Client) FindSensorAvgBySensorIDAndDay(params *FindSensorAvgBySensorIDAndDayParams) (*FindSensorAvgBySensorIDAndDayOK, error)
FindSensorAvgBySensorIDAndDay Find a daily summary of hour based aggregates
func (*Client) FindSensorDataBySensorIDAndTimeRange ¶
func (a *Client) FindSensorDataBySensorIDAndTimeRange(params *FindSensorDataBySensorIDAndTimeRangeParams) (*FindSensorDataBySensorIDAndTimeRangeOK, error)
FindSensorDataBySensorIDAndTimeRange Read sensor data
func (*Client) FindSensorsByPetID ¶
func (a *Client) FindSensorsByPetID(params *FindSensorsByPetIDParams) (*FindSensorsByPetIDOK, error)
FindSensorsByPetID Find the Pet sensors
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type ClientService ¶
type ClientService interface { FindOwnerByID(params *FindOwnerByIDParams) (*FindOwnerByIDOK, error) FindPetsByOwnerID(params *FindPetsByOwnerIDParams) (*FindPetsByOwnerIDOK, error) FindSensorAvgBySensorIDAndDay(params *FindSensorAvgBySensorIDAndDayParams) (*FindSensorAvgBySensorIDAndDayOK, error) FindSensorDataBySensorIDAndTimeRange(params *FindSensorDataBySensorIDAndTimeRangeParams) (*FindSensorDataBySensorIDAndTimeRangeOK, error) FindSensorsByPetID(params *FindSensorsByPetIDParams) (*FindSensorsByPetIDOK, error) SetTransport(transport runtime.ClientTransport) }
ClientService is the interface for Client methods
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) ClientService
New creates a new operations API client.
type FindOwnerByIDDefault ¶
type FindOwnerByIDDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindOwnerByIDDefault handles this case with default header values.
error
func NewFindOwnerByIDDefault ¶
func NewFindOwnerByIDDefault(code int) *FindOwnerByIDDefault
NewFindOwnerByIDDefault creates a FindOwnerByIDDefault with default headers values
func (*FindOwnerByIDDefault) Code ¶
func (o *FindOwnerByIDDefault) Code() int
Code gets the status code for the find owner by id default response
func (*FindOwnerByIDDefault) Error ¶
func (o *FindOwnerByIDDefault) Error() string
func (*FindOwnerByIDDefault) GetPayload ¶
func (o *FindOwnerByIDDefault) GetPayload() *models.Error
type FindOwnerByIDOK ¶
FindOwnerByIDOK handles this case with default header values.
owner response
func NewFindOwnerByIDOK ¶
func NewFindOwnerByIDOK() *FindOwnerByIDOK
NewFindOwnerByIDOK creates a FindOwnerByIDOK with default headers values
func (*FindOwnerByIDOK) Error ¶
func (o *FindOwnerByIDOK) Error() string
func (*FindOwnerByIDOK) GetPayload ¶
func (o *FindOwnerByIDOK) GetPayload() *models.Owner
type FindOwnerByIDParams ¶
type FindOwnerByIDParams struct { /*ID ID of an owner to fetch */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindOwnerByIDParams contains all the parameters to send to the API endpoint for the find owner by id operation typically these are written to a http.Request
func NewFindOwnerByIDParams ¶
func NewFindOwnerByIDParams() *FindOwnerByIDParams
NewFindOwnerByIDParams creates a new FindOwnerByIDParams object with the default values initialized.
func NewFindOwnerByIDParamsWithContext ¶
func NewFindOwnerByIDParamsWithContext(ctx context.Context) *FindOwnerByIDParams
NewFindOwnerByIDParamsWithContext creates a new FindOwnerByIDParams object with the default values initialized, and the ability to set a context for a request
func NewFindOwnerByIDParamsWithHTTPClient ¶
func NewFindOwnerByIDParamsWithHTTPClient(client *http.Client) *FindOwnerByIDParams
NewFindOwnerByIDParamsWithHTTPClient creates a new FindOwnerByIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindOwnerByIDParamsWithTimeout ¶
func NewFindOwnerByIDParamsWithTimeout(timeout time.Duration) *FindOwnerByIDParams
NewFindOwnerByIDParamsWithTimeout creates a new FindOwnerByIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindOwnerByIDParams) SetContext ¶
func (o *FindOwnerByIDParams) SetContext(ctx context.Context)
SetContext adds the context to the find owner by id params
func (*FindOwnerByIDParams) SetHTTPClient ¶
func (o *FindOwnerByIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find owner by id params
func (*FindOwnerByIDParams) SetID ¶
func (o *FindOwnerByIDParams) SetID(id strfmt.UUID)
SetID adds the id to the find owner by id params
func (*FindOwnerByIDParams) SetTimeout ¶
func (o *FindOwnerByIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find owner by id params
func (*FindOwnerByIDParams) WithContext ¶
func (o *FindOwnerByIDParams) WithContext(ctx context.Context) *FindOwnerByIDParams
WithContext adds the context to the find owner by id params
func (*FindOwnerByIDParams) WithHTTPClient ¶
func (o *FindOwnerByIDParams) WithHTTPClient(client *http.Client) *FindOwnerByIDParams
WithHTTPClient adds the HTTPClient to the find owner by id params
func (*FindOwnerByIDParams) WithID ¶
func (o *FindOwnerByIDParams) WithID(id strfmt.UUID) *FindOwnerByIDParams
WithID adds the id to the find owner by id params
func (*FindOwnerByIDParams) WithTimeout ¶
func (o *FindOwnerByIDParams) WithTimeout(timeout time.Duration) *FindOwnerByIDParams
WithTimeout adds the timeout to the find owner by id params
func (*FindOwnerByIDParams) WriteToRequest ¶
func (o *FindOwnerByIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindOwnerByIDReader ¶
type FindOwnerByIDReader struct {
// contains filtered or unexported fields
}
FindOwnerByIDReader is a Reader for the FindOwnerByID structure.
func (*FindOwnerByIDReader) ReadResponse ¶
func (o *FindOwnerByIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindPetsByOwnerIDDefault ¶
type FindPetsByOwnerIDDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindPetsByOwnerIDDefault handles this case with default header values.
error
func NewFindPetsByOwnerIDDefault ¶
func NewFindPetsByOwnerIDDefault(code int) *FindPetsByOwnerIDDefault
NewFindPetsByOwnerIDDefault creates a FindPetsByOwnerIDDefault with default headers values
func (*FindPetsByOwnerIDDefault) Code ¶
func (o *FindPetsByOwnerIDDefault) Code() int
Code gets the status code for the find pets by owner id default response
func (*FindPetsByOwnerIDDefault) Error ¶
func (o *FindPetsByOwnerIDDefault) Error() string
func (*FindPetsByOwnerIDDefault) GetPayload ¶
func (o *FindPetsByOwnerIDDefault) GetPayload() *models.Error
type FindPetsByOwnerIDOK ¶
FindPetsByOwnerIDOK handles this case with default header values.
pets response
func NewFindPetsByOwnerIDOK ¶
func NewFindPetsByOwnerIDOK() *FindPetsByOwnerIDOK
NewFindPetsByOwnerIDOK creates a FindPetsByOwnerIDOK with default headers values
func (*FindPetsByOwnerIDOK) Error ¶
func (o *FindPetsByOwnerIDOK) Error() string
func (*FindPetsByOwnerIDOK) GetPayload ¶
func (o *FindPetsByOwnerIDOK) GetPayload() []*models.Pet
type FindPetsByOwnerIDParams ¶
type FindPetsByOwnerIDParams struct { /*ID ID of an owner pets to fetch */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindPetsByOwnerIDParams contains all the parameters to send to the API endpoint for the find pets by owner id operation typically these are written to a http.Request
func NewFindPetsByOwnerIDParams ¶
func NewFindPetsByOwnerIDParams() *FindPetsByOwnerIDParams
NewFindPetsByOwnerIDParams creates a new FindPetsByOwnerIDParams object with the default values initialized.
func NewFindPetsByOwnerIDParamsWithContext ¶
func NewFindPetsByOwnerIDParamsWithContext(ctx context.Context) *FindPetsByOwnerIDParams
NewFindPetsByOwnerIDParamsWithContext creates a new FindPetsByOwnerIDParams object with the default values initialized, and the ability to set a context for a request
func NewFindPetsByOwnerIDParamsWithHTTPClient ¶
func NewFindPetsByOwnerIDParamsWithHTTPClient(client *http.Client) *FindPetsByOwnerIDParams
NewFindPetsByOwnerIDParamsWithHTTPClient creates a new FindPetsByOwnerIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindPetsByOwnerIDParamsWithTimeout ¶
func NewFindPetsByOwnerIDParamsWithTimeout(timeout time.Duration) *FindPetsByOwnerIDParams
NewFindPetsByOwnerIDParamsWithTimeout creates a new FindPetsByOwnerIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindPetsByOwnerIDParams) SetContext ¶
func (o *FindPetsByOwnerIDParams) SetContext(ctx context.Context)
SetContext adds the context to the find pets by owner id params
func (*FindPetsByOwnerIDParams) SetHTTPClient ¶
func (o *FindPetsByOwnerIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find pets by owner id params
func (*FindPetsByOwnerIDParams) SetID ¶
func (o *FindPetsByOwnerIDParams) SetID(id strfmt.UUID)
SetID adds the id to the find pets by owner id params
func (*FindPetsByOwnerIDParams) SetTimeout ¶
func (o *FindPetsByOwnerIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find pets by owner id params
func (*FindPetsByOwnerIDParams) WithContext ¶
func (o *FindPetsByOwnerIDParams) WithContext(ctx context.Context) *FindPetsByOwnerIDParams
WithContext adds the context to the find pets by owner id params
func (*FindPetsByOwnerIDParams) WithHTTPClient ¶
func (o *FindPetsByOwnerIDParams) WithHTTPClient(client *http.Client) *FindPetsByOwnerIDParams
WithHTTPClient adds the HTTPClient to the find pets by owner id params
func (*FindPetsByOwnerIDParams) WithID ¶
func (o *FindPetsByOwnerIDParams) WithID(id strfmt.UUID) *FindPetsByOwnerIDParams
WithID adds the id to the find pets by owner id params
func (*FindPetsByOwnerIDParams) WithTimeout ¶
func (o *FindPetsByOwnerIDParams) WithTimeout(timeout time.Duration) *FindPetsByOwnerIDParams
WithTimeout adds the timeout to the find pets by owner id params
func (*FindPetsByOwnerIDParams) WriteToRequest ¶
func (o *FindPetsByOwnerIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindPetsByOwnerIDReader ¶
type FindPetsByOwnerIDReader struct {
// contains filtered or unexported fields
}
FindPetsByOwnerIDReader is a Reader for the FindPetsByOwnerID structure.
func (*FindPetsByOwnerIDReader) ReadResponse ¶
func (o *FindPetsByOwnerIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSensorAvgBySensorIDAndDayDefault ¶
type FindSensorAvgBySensorIDAndDayDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindSensorAvgBySensorIDAndDayDefault handles this case with default header values.
error
func NewFindSensorAvgBySensorIDAndDayDefault ¶
func NewFindSensorAvgBySensorIDAndDayDefault(code int) *FindSensorAvgBySensorIDAndDayDefault
NewFindSensorAvgBySensorIDAndDayDefault creates a FindSensorAvgBySensorIDAndDayDefault with default headers values
func (*FindSensorAvgBySensorIDAndDayDefault) Code ¶
func (o *FindSensorAvgBySensorIDAndDayDefault) Code() int
Code gets the status code for the find sensor avg by sensor id and day default response
func (*FindSensorAvgBySensorIDAndDayDefault) Error ¶
func (o *FindSensorAvgBySensorIDAndDayDefault) Error() string
func (*FindSensorAvgBySensorIDAndDayDefault) GetPayload ¶
func (o *FindSensorAvgBySensorIDAndDayDefault) GetPayload() *models.Error
type FindSensorAvgBySensorIDAndDayOK ¶
FindSensorAvgBySensorIDAndDayOK handles this case with default header values.
sensor avg response
func NewFindSensorAvgBySensorIDAndDayOK ¶
func NewFindSensorAvgBySensorIDAndDayOK() *FindSensorAvgBySensorIDAndDayOK
NewFindSensorAvgBySensorIDAndDayOK creates a FindSensorAvgBySensorIDAndDayOK with default headers values
func (*FindSensorAvgBySensorIDAndDayOK) Error ¶
func (o *FindSensorAvgBySensorIDAndDayOK) Error() string
func (*FindSensorAvgBySensorIDAndDayOK) GetPayload ¶
func (o *FindSensorAvgBySensorIDAndDayOK) GetPayload() []*models.SensorAvg
type FindSensorAvgBySensorIDAndDayParams ¶
type FindSensorAvgBySensorIDAndDayParams struct { /*Day average on a day */ Day strfmt.Date /*ID ID of a sensor to fetch */ ID strfmt.UUID /*P sensor parameter id */ P strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSensorAvgBySensorIDAndDayParams contains all the parameters to send to the API endpoint for the find sensor avg by sensor id and day operation typically these are written to a http.Request
func NewFindSensorAvgBySensorIDAndDayParams ¶
func NewFindSensorAvgBySensorIDAndDayParams() *FindSensorAvgBySensorIDAndDayParams
NewFindSensorAvgBySensorIDAndDayParams creates a new FindSensorAvgBySensorIDAndDayParams object with the default values initialized.
func NewFindSensorAvgBySensorIDAndDayParamsWithContext ¶
func NewFindSensorAvgBySensorIDAndDayParamsWithContext(ctx context.Context) *FindSensorAvgBySensorIDAndDayParams
NewFindSensorAvgBySensorIDAndDayParamsWithContext creates a new FindSensorAvgBySensorIDAndDayParams object with the default values initialized, and the ability to set a context for a request
func NewFindSensorAvgBySensorIDAndDayParamsWithHTTPClient ¶
func NewFindSensorAvgBySensorIDAndDayParamsWithHTTPClient(client *http.Client) *FindSensorAvgBySensorIDAndDayParams
NewFindSensorAvgBySensorIDAndDayParamsWithHTTPClient creates a new FindSensorAvgBySensorIDAndDayParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindSensorAvgBySensorIDAndDayParamsWithTimeout ¶
func NewFindSensorAvgBySensorIDAndDayParamsWithTimeout(timeout time.Duration) *FindSensorAvgBySensorIDAndDayParams
NewFindSensorAvgBySensorIDAndDayParamsWithTimeout creates a new FindSensorAvgBySensorIDAndDayParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindSensorAvgBySensorIDAndDayParams) SetContext ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetContext(ctx context.Context)
SetContext adds the context to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) SetDay ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetDay(day strfmt.Date)
SetDay adds the day to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) SetHTTPClient ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) SetID ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetID(id strfmt.UUID)
SetID adds the id to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) SetP ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetP(p strfmt.UUID)
SetP adds the p to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) SetTimeout ¶
func (o *FindSensorAvgBySensorIDAndDayParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithContext ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithContext(ctx context.Context) *FindSensorAvgBySensorIDAndDayParams
WithContext adds the context to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithDay ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithDay(day strfmt.Date) *FindSensorAvgBySensorIDAndDayParams
WithDay adds the day to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithHTTPClient ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithHTTPClient(client *http.Client) *FindSensorAvgBySensorIDAndDayParams
WithHTTPClient adds the HTTPClient to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithID ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithID(id strfmt.UUID) *FindSensorAvgBySensorIDAndDayParams
WithID adds the id to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithP ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithP(p strfmt.UUID) *FindSensorAvgBySensorIDAndDayParams
WithP adds the p to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WithTimeout ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WithTimeout(timeout time.Duration) *FindSensorAvgBySensorIDAndDayParams
WithTimeout adds the timeout to the find sensor avg by sensor id and day params
func (*FindSensorAvgBySensorIDAndDayParams) WriteToRequest ¶
func (o *FindSensorAvgBySensorIDAndDayParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSensorAvgBySensorIDAndDayReader ¶
type FindSensorAvgBySensorIDAndDayReader struct {
// contains filtered or unexported fields
}
FindSensorAvgBySensorIDAndDayReader is a Reader for the FindSensorAvgBySensorIDAndDay structure.
func (*FindSensorAvgBySensorIDAndDayReader) ReadResponse ¶
func (o *FindSensorAvgBySensorIDAndDayReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSensorDataBySensorIDAndTimeRangeDefault ¶
type FindSensorDataBySensorIDAndTimeRangeDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindSensorDataBySensorIDAndTimeRangeDefault handles this case with default header values.
error
func NewFindSensorDataBySensorIDAndTimeRangeDefault ¶
func NewFindSensorDataBySensorIDAndTimeRangeDefault(code int) *FindSensorDataBySensorIDAndTimeRangeDefault
NewFindSensorDataBySensorIDAndTimeRangeDefault creates a FindSensorDataBySensorIDAndTimeRangeDefault with default headers values
func (*FindSensorDataBySensorIDAndTimeRangeDefault) Code ¶
func (o *FindSensorDataBySensorIDAndTimeRangeDefault) Code() int
Code gets the status code for the find sensor data by sensor id and time range default response
func (*FindSensorDataBySensorIDAndTimeRangeDefault) Error ¶
func (o *FindSensorDataBySensorIDAndTimeRangeDefault) Error() string
func (*FindSensorDataBySensorIDAndTimeRangeDefault) GetPayload ¶
func (o *FindSensorDataBySensorIDAndTimeRangeDefault) GetPayload() *models.Error
type FindSensorDataBySensorIDAndTimeRangeOK ¶
FindSensorDataBySensorIDAndTimeRangeOK handles this case with default header values.
sensors response
func NewFindSensorDataBySensorIDAndTimeRangeOK ¶
func NewFindSensorDataBySensorIDAndTimeRangeOK() *FindSensorDataBySensorIDAndTimeRangeOK
NewFindSensorDataBySensorIDAndTimeRangeOK creates a FindSensorDataBySensorIDAndTimeRangeOK with default headers values
func (*FindSensorDataBySensorIDAndTimeRangeOK) Error ¶
func (o *FindSensorDataBySensorIDAndTimeRangeOK) Error() string
func (*FindSensorDataBySensorIDAndTimeRangeOK) GetPayload ¶
func (o *FindSensorDataBySensorIDAndTimeRangeOK) GetPayload() []*models.Measure
type FindSensorDataBySensorIDAndTimeRangeParams ¶
type FindSensorDataBySensorIDAndTimeRangeParams struct { /*From from timestamp */ From strfmt.DateTime /*ID ID of a sensor to fetch */ ID strfmt.UUID /*P sensor parameter id */ P strfmt.UUID /*To to timestamp */ To strfmt.DateTime Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSensorDataBySensorIDAndTimeRangeParams contains all the parameters to send to the API endpoint for the find sensor data by sensor id and time range operation typically these are written to a http.Request
func NewFindSensorDataBySensorIDAndTimeRangeParams ¶
func NewFindSensorDataBySensorIDAndTimeRangeParams() *FindSensorDataBySensorIDAndTimeRangeParams
NewFindSensorDataBySensorIDAndTimeRangeParams creates a new FindSensorDataBySensorIDAndTimeRangeParams object with the default values initialized.
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithContext ¶
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithContext(ctx context.Context) *FindSensorDataBySensorIDAndTimeRangeParams
NewFindSensorDataBySensorIDAndTimeRangeParamsWithContext creates a new FindSensorDataBySensorIDAndTimeRangeParams object with the default values initialized, and the ability to set a context for a request
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithHTTPClient ¶
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithHTTPClient(client *http.Client) *FindSensorDataBySensorIDAndTimeRangeParams
NewFindSensorDataBySensorIDAndTimeRangeParamsWithHTTPClient creates a new FindSensorDataBySensorIDAndTimeRangeParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithTimeout ¶
func NewFindSensorDataBySensorIDAndTimeRangeParamsWithTimeout(timeout time.Duration) *FindSensorDataBySensorIDAndTimeRangeParams
NewFindSensorDataBySensorIDAndTimeRangeParamsWithTimeout creates a new FindSensorDataBySensorIDAndTimeRangeParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetContext ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetContext(ctx context.Context)
SetContext adds the context to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetFrom ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetFrom(from strfmt.DateTime)
SetFrom adds the from to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetHTTPClient ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetID ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetID(id strfmt.UUID)
SetID adds the id to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetP ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetP(p strfmt.UUID)
SetP adds the p to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetTimeout ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) SetTo ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) SetTo(to strfmt.DateTime)
SetTo adds the to to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithContext ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithContext(ctx context.Context) *FindSensorDataBySensorIDAndTimeRangeParams
WithContext adds the context to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithFrom ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithFrom(from strfmt.DateTime) *FindSensorDataBySensorIDAndTimeRangeParams
WithFrom adds the from to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithHTTPClient ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithHTTPClient(client *http.Client) *FindSensorDataBySensorIDAndTimeRangeParams
WithHTTPClient adds the HTTPClient to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithID ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithID(id strfmt.UUID) *FindSensorDataBySensorIDAndTimeRangeParams
WithID adds the id to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithP ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithP(p strfmt.UUID) *FindSensorDataBySensorIDAndTimeRangeParams
WithP adds the p to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithTimeout ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithTimeout(timeout time.Duration) *FindSensorDataBySensorIDAndTimeRangeParams
WithTimeout adds the timeout to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WithTo ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WithTo(to strfmt.DateTime) *FindSensorDataBySensorIDAndTimeRangeParams
WithTo adds the to to the find sensor data by sensor id and time range params
func (*FindSensorDataBySensorIDAndTimeRangeParams) WriteToRequest ¶
func (o *FindSensorDataBySensorIDAndTimeRangeParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSensorDataBySensorIDAndTimeRangeReader ¶
type FindSensorDataBySensorIDAndTimeRangeReader struct {
// contains filtered or unexported fields
}
FindSensorDataBySensorIDAndTimeRangeReader is a Reader for the FindSensorDataBySensorIDAndTimeRange structure.
func (*FindSensorDataBySensorIDAndTimeRangeReader) ReadResponse ¶
func (o *FindSensorDataBySensorIDAndTimeRangeReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type FindSensorsByPetIDDefault ¶
type FindSensorsByPetIDDefault struct { Payload *models.Error // contains filtered or unexported fields }
FindSensorsByPetIDDefault handles this case with default header values.
error
func NewFindSensorsByPetIDDefault ¶
func NewFindSensorsByPetIDDefault(code int) *FindSensorsByPetIDDefault
NewFindSensorsByPetIDDefault creates a FindSensorsByPetIDDefault with default headers values
func (*FindSensorsByPetIDDefault) Code ¶
func (o *FindSensorsByPetIDDefault) Code() int
Code gets the status code for the find sensors by pet id default response
func (*FindSensorsByPetIDDefault) Error ¶
func (o *FindSensorsByPetIDDefault) Error() string
func (*FindSensorsByPetIDDefault) GetPayload ¶
func (o *FindSensorsByPetIDDefault) GetPayload() *models.Error
type FindSensorsByPetIDOK ¶
FindSensorsByPetIDOK handles this case with default header values.
sensors response
func NewFindSensorsByPetIDOK ¶
func NewFindSensorsByPetIDOK() *FindSensorsByPetIDOK
NewFindSensorsByPetIDOK creates a FindSensorsByPetIDOK with default headers values
func (*FindSensorsByPetIDOK) Error ¶
func (o *FindSensorsByPetIDOK) Error() string
func (*FindSensorsByPetIDOK) GetPayload ¶
func (o *FindSensorsByPetIDOK) GetPayload() []*models.Sensor
type FindSensorsByPetIDParams ¶
type FindSensorsByPetIDParams struct { /*ID ID of a pet sensors to fetch */ ID strfmt.UUID Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
FindSensorsByPetIDParams contains all the parameters to send to the API endpoint for the find sensors by pet id operation typically these are written to a http.Request
func NewFindSensorsByPetIDParams ¶
func NewFindSensorsByPetIDParams() *FindSensorsByPetIDParams
NewFindSensorsByPetIDParams creates a new FindSensorsByPetIDParams object with the default values initialized.
func NewFindSensorsByPetIDParamsWithContext ¶
func NewFindSensorsByPetIDParamsWithContext(ctx context.Context) *FindSensorsByPetIDParams
NewFindSensorsByPetIDParamsWithContext creates a new FindSensorsByPetIDParams object with the default values initialized, and the ability to set a context for a request
func NewFindSensorsByPetIDParamsWithHTTPClient ¶
func NewFindSensorsByPetIDParamsWithHTTPClient(client *http.Client) *FindSensorsByPetIDParams
NewFindSensorsByPetIDParamsWithHTTPClient creates a new FindSensorsByPetIDParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewFindSensorsByPetIDParamsWithTimeout ¶
func NewFindSensorsByPetIDParamsWithTimeout(timeout time.Duration) *FindSensorsByPetIDParams
NewFindSensorsByPetIDParamsWithTimeout creates a new FindSensorsByPetIDParams object with the default values initialized, and the ability to set a timeout on a request
func (*FindSensorsByPetIDParams) SetContext ¶
func (o *FindSensorsByPetIDParams) SetContext(ctx context.Context)
SetContext adds the context to the find sensors by pet id params
func (*FindSensorsByPetIDParams) SetHTTPClient ¶
func (o *FindSensorsByPetIDParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the find sensors by pet id params
func (*FindSensorsByPetIDParams) SetID ¶
func (o *FindSensorsByPetIDParams) SetID(id strfmt.UUID)
SetID adds the id to the find sensors by pet id params
func (*FindSensorsByPetIDParams) SetTimeout ¶
func (o *FindSensorsByPetIDParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the find sensors by pet id params
func (*FindSensorsByPetIDParams) WithContext ¶
func (o *FindSensorsByPetIDParams) WithContext(ctx context.Context) *FindSensorsByPetIDParams
WithContext adds the context to the find sensors by pet id params
func (*FindSensorsByPetIDParams) WithHTTPClient ¶
func (o *FindSensorsByPetIDParams) WithHTTPClient(client *http.Client) *FindSensorsByPetIDParams
WithHTTPClient adds the HTTPClient to the find sensors by pet id params
func (*FindSensorsByPetIDParams) WithID ¶
func (o *FindSensorsByPetIDParams) WithID(id strfmt.UUID) *FindSensorsByPetIDParams
WithID adds the id to the find sensors by pet id params
func (*FindSensorsByPetIDParams) WithTimeout ¶
func (o *FindSensorsByPetIDParams) WithTimeout(timeout time.Duration) *FindSensorsByPetIDParams
WithTimeout adds the timeout to the find sensors by pet id params
func (*FindSensorsByPetIDParams) WriteToRequest ¶
func (o *FindSensorsByPetIDParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type FindSensorsByPetIDReader ¶
type FindSensorsByPetIDReader struct {
// contains filtered or unexported fields
}
FindSensorsByPetIDReader is a Reader for the FindSensorsByPetID structure.
func (*FindSensorsByPetIDReader) ReadResponse ¶
func (o *FindSensorsByPetIDReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
Source Files ¶
- find_owner_by_id_parameters.go
- find_owner_by_id_responses.go
- find_pets_by_owner_id_parameters.go
- find_pets_by_owner_id_responses.go
- find_sensor_avg_by_sensor_id_and_day_parameters.go
- find_sensor_avg_by_sensor_id_and_day_responses.go
- find_sensor_data_by_sensor_id_and_time_range_parameters.go
- find_sensor_data_by_sensor_id_and_time_range_responses.go
- find_sensors_by_pet_id_parameters.go
- find_sensors_by_pet_id_responses.go
- operations_client.go