operations

package
v0.0.0-...-b28c67c Latest Latest
Warning

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

Go to latest
Published: Feb 5, 2024 License: Apache-2.0 Imports: 10 Imported by: 0

Documentation

Index

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

type FindOwnerByIDOK struct {
	Payload *models.Owner
}

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

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

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

type FindPetsByOwnerIDOK struct {
	Payload []*models.Pet
}

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

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

WithID adds the id to the find pets by owner id params

func (*FindPetsByOwnerIDParams) WithTimeout

WithTimeout adds the timeout to the find pets by owner id params

func (*FindPetsByOwnerIDParams) WriteToRequest

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

Code gets the status code for the find sensor avg by sensor id and day default response

func (*FindSensorAvgBySensorIDAndDayDefault) Error

func (*FindSensorAvgBySensorIDAndDayDefault) GetPayload

type FindSensorAvgBySensorIDAndDayOK

type FindSensorAvgBySensorIDAndDayOK struct {
	Payload []*models.SensorAvg
}

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 (*FindSensorAvgBySensorIDAndDayOK) GetPayload

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

SetContext adds the context to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) SetDay

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

SetID adds the id to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) SetP

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

WithContext adds the context to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WithDay

WithDay adds the day to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WithID

WithID adds the id to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WithP

WithP adds the p to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WithTimeout

WithTimeout adds the timeout to the find sensor avg by sensor id and day params

func (*FindSensorAvgBySensorIDAndDayParams) WriteToRequest

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

Code gets the status code for the find sensor data by sensor id and time range default response

func (*FindSensorDataBySensorIDAndTimeRangeDefault) Error

func (*FindSensorDataBySensorIDAndTimeRangeDefault) GetPayload

type FindSensorDataBySensorIDAndTimeRangeOK

type FindSensorDataBySensorIDAndTimeRangeOK struct {
	Payload []*models.Measure
}

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 (*FindSensorDataBySensorIDAndTimeRangeOK) GetPayload

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

SetContext adds the context to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) SetFrom

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

SetID adds the id to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) SetP

SetP adds the p to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) SetTimeout

SetTimeout adds the timeout to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) SetTo

SetTo adds the to to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithContext

WithContext adds the context to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithFrom

WithFrom adds the from to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithID

WithID adds the id to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithP

WithP adds the p to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithTimeout

WithTimeout adds the timeout to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WithTo

WithTo adds the to to the find sensor data by sensor id and time range params

func (*FindSensorDataBySensorIDAndTimeRangeParams) WriteToRequest

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

type FindSensorsByPetIDOK struct {
	Payload []*models.Sensor
}

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

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

WithID adds the id to the find sensors by pet id params

func (*FindSensorsByPetIDParams) WithTimeout

WithTimeout adds the timeout to the find sensors by pet id params

func (*FindSensorsByPetIDParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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