Documentation
¶
Index ¶
- type Client
- type SendDataToDeviceBadRequest
- type SendDataToDeviceInternalServerError
- type SendDataToDeviceOK
- type SendDataToDeviceParams
- func NewSendDataToDeviceParams() *SendDataToDeviceParams
- func NewSendDataToDeviceParamsWithContext(ctx context.Context) *SendDataToDeviceParams
- func NewSendDataToDeviceParamsWithHTTPClient(client *http.Client) *SendDataToDeviceParams
- func NewSendDataToDeviceParamsWithTimeout(timeout time.Duration) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) SetContext(ctx context.Context)
- func (o *SendDataToDeviceParams) SetDeviceData(deviceData *models.DeviceData)
- func (o *SendDataToDeviceParams) SetDeviceID(deviceID string)
- func (o *SendDataToDeviceParams) SetHTTPClient(client *http.Client)
- func (o *SendDataToDeviceParams) SetTimeout(timeout time.Duration)
- func (o *SendDataToDeviceParams) WithContext(ctx context.Context) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) WithDeviceData(deviceData *models.DeviceData) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) WithDeviceID(deviceID string) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) WithHTTPClient(client *http.Client) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) WithTimeout(timeout time.Duration) *SendDataToDeviceParams
- func (o *SendDataToDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type SendDataToDeviceReader
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 device API
func New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new device API client.
func (*Client) SendDataToDevice ¶
func (a *Client) SendDataToDevice(params *SendDataToDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*SendDataToDeviceOK, error)
SendDataToDevice sends data to device
send data to device
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
type SendDataToDeviceBadRequest ¶
type SendDataToDeviceBadRequest struct { }
SendDataToDeviceBadRequest handles this case with default header values.
Bad request
func NewSendDataToDeviceBadRequest ¶
func NewSendDataToDeviceBadRequest() *SendDataToDeviceBadRequest
NewSendDataToDeviceBadRequest creates a SendDataToDeviceBadRequest with default headers values
func (*SendDataToDeviceBadRequest) Error ¶
func (o *SendDataToDeviceBadRequest) Error() string
type SendDataToDeviceInternalServerError ¶
type SendDataToDeviceInternalServerError struct { }
SendDataToDeviceInternalServerError handles this case with default header values.
Server internal error
func NewSendDataToDeviceInternalServerError ¶
func NewSendDataToDeviceInternalServerError() *SendDataToDeviceInternalServerError
NewSendDataToDeviceInternalServerError creates a SendDataToDeviceInternalServerError with default headers values
func (*SendDataToDeviceInternalServerError) Error ¶
func (o *SendDataToDeviceInternalServerError) Error() string
type SendDataToDeviceOK ¶
type SendDataToDeviceOK struct { }
SendDataToDeviceOK handles this case with default header values.
Successful operation
func NewSendDataToDeviceOK ¶
func NewSendDataToDeviceOK() *SendDataToDeviceOK
NewSendDataToDeviceOK creates a SendDataToDeviceOK with default headers values
func (*SendDataToDeviceOK) Error ¶
func (o *SendDataToDeviceOK) Error() string
type SendDataToDeviceParams ¶
type SendDataToDeviceParams struct { /*DeviceData data to device */ DeviceData *models.DeviceData /*DeviceID device identifer */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
SendDataToDeviceParams contains all the parameters to send to the API endpoint for the send data to device operation typically these are written to a http.Request
func NewSendDataToDeviceParams ¶
func NewSendDataToDeviceParams() *SendDataToDeviceParams
NewSendDataToDeviceParams creates a new SendDataToDeviceParams object with the default values initialized.
func NewSendDataToDeviceParamsWithContext ¶
func NewSendDataToDeviceParamsWithContext(ctx context.Context) *SendDataToDeviceParams
NewSendDataToDeviceParamsWithContext creates a new SendDataToDeviceParams object with the default values initialized, and the ability to set a context for a request
func NewSendDataToDeviceParamsWithHTTPClient ¶
func NewSendDataToDeviceParamsWithHTTPClient(client *http.Client) *SendDataToDeviceParams
NewSendDataToDeviceParamsWithHTTPClient creates a new SendDataToDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewSendDataToDeviceParamsWithTimeout ¶
func NewSendDataToDeviceParamsWithTimeout(timeout time.Duration) *SendDataToDeviceParams
NewSendDataToDeviceParamsWithTimeout creates a new SendDataToDeviceParams object with the default values initialized, and the ability to set a timeout on a request
func (*SendDataToDeviceParams) SetContext ¶
func (o *SendDataToDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the send data to device params
func (*SendDataToDeviceParams) SetDeviceData ¶
func (o *SendDataToDeviceParams) SetDeviceData(deviceData *models.DeviceData)
SetDeviceData adds the deviceData to the send data to device params
func (*SendDataToDeviceParams) SetDeviceID ¶
func (o *SendDataToDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the send data to device params
func (*SendDataToDeviceParams) SetHTTPClient ¶
func (o *SendDataToDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the send data to device params
func (*SendDataToDeviceParams) SetTimeout ¶
func (o *SendDataToDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the send data to device params
func (*SendDataToDeviceParams) WithContext ¶
func (o *SendDataToDeviceParams) WithContext(ctx context.Context) *SendDataToDeviceParams
WithContext adds the context to the send data to device params
func (*SendDataToDeviceParams) WithDeviceData ¶
func (o *SendDataToDeviceParams) WithDeviceData(deviceData *models.DeviceData) *SendDataToDeviceParams
WithDeviceData adds the deviceData to the send data to device params
func (*SendDataToDeviceParams) WithDeviceID ¶
func (o *SendDataToDeviceParams) WithDeviceID(deviceID string) *SendDataToDeviceParams
WithDeviceID adds the deviceID to the send data to device params
func (*SendDataToDeviceParams) WithHTTPClient ¶
func (o *SendDataToDeviceParams) WithHTTPClient(client *http.Client) *SendDataToDeviceParams
WithHTTPClient adds the HTTPClient to the send data to device params
func (*SendDataToDeviceParams) WithTimeout ¶
func (o *SendDataToDeviceParams) WithTimeout(timeout time.Duration) *SendDataToDeviceParams
WithTimeout adds the timeout to the send data to device params
func (*SendDataToDeviceParams) WriteToRequest ¶
func (o *SendDataToDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type SendDataToDeviceReader ¶
type SendDataToDeviceReader struct {
// contains filtered or unexported fields
}
SendDataToDeviceReader is a Reader for the SendDataToDevice structure.
func (*SendDataToDeviceReader) ReadResponse ¶
func (o *SendDataToDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.