device

package
v0.0.0-...-7077701 Latest Latest
Warning

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

Go to latest
Published: Mar 17, 2020 License: Apache-2.0 Imports: 9 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 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

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

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

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

WithTimeout adds the timeout to the send data to device params

func (*SendDataToDeviceParams) WriteToRequest

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.

Jump to

Keyboard shortcuts

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