device

package
v0.0.0-...-0a150ed Latest Latest
Warning

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

Go to latest
Published: Mar 4, 2021 License: MIT 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 device API

func (*Client) DeviceList

func (a *Client) DeviceList(params *DeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeviceListOK, error)

DeviceList lists of device that should be presented on host

func (*Client) DevicesStatsUpdate

func (a *Client) DevicesStatsUpdate(params *DevicesStatsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DevicesStatsUpdateOK, error)

DevicesStatsUpdate connecteds devices stats to the API

func (*Client) SetTransport

func (a *Client) SetTransport(transport runtime.ClientTransport)

SetTransport changes the transport on the client

type ClientOption

type ClientOption func(*runtime.ClientOperation)

ClientOption is the option for Client methods

type ClientService

type ClientService interface {
	DeviceList(params *DeviceListParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DeviceListOK, error)

	DevicesStatsUpdate(params *DevicesStatsUpdateParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*DevicesStatsUpdateOK, 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 device API client.

type DeviceListDefault

type DeviceListDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
DeviceListDefault describes a response with status code -1, with default header values.

error

func NewDeviceListDefault

func NewDeviceListDefault(code int) *DeviceListDefault

NewDeviceListDefault creates a DeviceListDefault with default headers values

func (*DeviceListDefault) Code

func (o *DeviceListDefault) Code() int

Code gets the status code for the device list default response

func (*DeviceListDefault) Error

func (o *DeviceListDefault) Error() string

func (*DeviceListDefault) GetPayload

func (o *DeviceListDefault) GetPayload() *models.Error

type DeviceListOK

type DeviceListOK struct {
	Payload models.DeviceList
}
DeviceListOK describes a response with status code 200, with default header values.

ok

func NewDeviceListOK

func NewDeviceListOK() *DeviceListOK

NewDeviceListOK creates a DeviceListOK with default headers values

func (*DeviceListOK) Error

func (o *DeviceListOK) Error() string

func (*DeviceListOK) GetPayload

func (o *DeviceListOK) GetPayload() models.DeviceList

type DeviceListParams

type DeviceListParams struct {

	// XRelayHostname.
	XRelayHostname string

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

DeviceListParams contains all the parameters to send to the API endpoint

for the device list operation.

Typically these are written to a http.Request.

func NewDeviceListParams

func NewDeviceListParams() *DeviceListParams

NewDeviceListParams creates a new DeviceListParams 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 NewDeviceListParamsWithContext

func NewDeviceListParamsWithContext(ctx context.Context) *DeviceListParams

NewDeviceListParamsWithContext creates a new DeviceListParams object with the ability to set a context for a request.

func NewDeviceListParamsWithHTTPClient

func NewDeviceListParamsWithHTTPClient(client *http.Client) *DeviceListParams

NewDeviceListParamsWithHTTPClient creates a new DeviceListParams object with the ability to set a custom HTTPClient for a request.

func NewDeviceListParamsWithTimeout

func NewDeviceListParamsWithTimeout(timeout time.Duration) *DeviceListParams

NewDeviceListParamsWithTimeout creates a new DeviceListParams object with the ability to set a timeout on a request.

func (*DeviceListParams) SetContext

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

SetContext adds the context to the device list params

func (*DeviceListParams) SetDefaults

func (o *DeviceListParams) SetDefaults()

SetDefaults hydrates default values in the device list params (not the query body).

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

func (*DeviceListParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the device list params

func (*DeviceListParams) SetTimeout

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

SetTimeout adds the timeout to the device list params

func (*DeviceListParams) SetXRelayHostname

func (o *DeviceListParams) SetXRelayHostname(xRelayHostname string)

SetXRelayHostname adds the xRelayHostname to the device list params

func (*DeviceListParams) WithContext

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

WithContext adds the context to the device list params

func (*DeviceListParams) WithDefaults

func (o *DeviceListParams) WithDefaults() *DeviceListParams

WithDefaults hydrates default values in the device list params (not the query body).

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

func (*DeviceListParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the device list params

func (*DeviceListParams) WithTimeout

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

WithTimeout adds the timeout to the device list params

func (*DeviceListParams) WithXRelayHostname

func (o *DeviceListParams) WithXRelayHostname(xRelayHostname string) *DeviceListParams

WithXRelayHostname adds the xRelayHostname to the device list params

func (*DeviceListParams) WriteToRequest

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

WriteToRequest writes these params to a swagger request

type DeviceListReader

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

DeviceListReader is a Reader for the DeviceList structure.

func (*DeviceListReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type DevicesStatsUpdateDefault

type DevicesStatsUpdateDefault struct {
	Payload *models.Error
	// contains filtered or unexported fields
}
DevicesStatsUpdateDefault describes a response with status code -1, with default header values.

error

func NewDevicesStatsUpdateDefault

func NewDevicesStatsUpdateDefault(code int) *DevicesStatsUpdateDefault

NewDevicesStatsUpdateDefault creates a DevicesStatsUpdateDefault with default headers values

func (*DevicesStatsUpdateDefault) Code

func (o *DevicesStatsUpdateDefault) Code() int

Code gets the status code for the devices stats update default response

func (*DevicesStatsUpdateDefault) Error

func (o *DevicesStatsUpdateDefault) Error() string

func (*DevicesStatsUpdateDefault) GetPayload

func (o *DevicesStatsUpdateDefault) GetPayload() *models.Error

type DevicesStatsUpdateOK

type DevicesStatsUpdateOK struct {
}
DevicesStatsUpdateOK describes a response with status code 200, with default header values.

ok

func NewDevicesStatsUpdateOK

func NewDevicesStatsUpdateOK() *DevicesStatsUpdateOK

NewDevicesStatsUpdateOK creates a DevicesStatsUpdateOK with default headers values

func (*DevicesStatsUpdateOK) Error

func (o *DevicesStatsUpdateOK) Error() string

type DevicesStatsUpdateParams

type DevicesStatsUpdateParams struct {

	// XRelayHostname.
	XRelayHostname string

	// Request.
	Request models.DeviceStatsMap

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

DevicesStatsUpdateParams contains all the parameters to send to the API endpoint

for the devices stats update operation.

Typically these are written to a http.Request.

func NewDevicesStatsUpdateParams

func NewDevicesStatsUpdateParams() *DevicesStatsUpdateParams

NewDevicesStatsUpdateParams creates a new DevicesStatsUpdateParams 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 NewDevicesStatsUpdateParamsWithContext

func NewDevicesStatsUpdateParamsWithContext(ctx context.Context) *DevicesStatsUpdateParams

NewDevicesStatsUpdateParamsWithContext creates a new DevicesStatsUpdateParams object with the ability to set a context for a request.

func NewDevicesStatsUpdateParamsWithHTTPClient

func NewDevicesStatsUpdateParamsWithHTTPClient(client *http.Client) *DevicesStatsUpdateParams

NewDevicesStatsUpdateParamsWithHTTPClient creates a new DevicesStatsUpdateParams object with the ability to set a custom HTTPClient for a request.

func NewDevicesStatsUpdateParamsWithTimeout

func NewDevicesStatsUpdateParamsWithTimeout(timeout time.Duration) *DevicesStatsUpdateParams

NewDevicesStatsUpdateParamsWithTimeout creates a new DevicesStatsUpdateParams object with the ability to set a timeout on a request.

func (*DevicesStatsUpdateParams) SetContext

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

SetContext adds the context to the devices stats update params

func (*DevicesStatsUpdateParams) SetDefaults

func (o *DevicesStatsUpdateParams) SetDefaults()

SetDefaults hydrates default values in the devices stats update params (not the query body).

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

func (*DevicesStatsUpdateParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the devices stats update params

func (*DevicesStatsUpdateParams) SetRequest

func (o *DevicesStatsUpdateParams) SetRequest(request models.DeviceStatsMap)

SetRequest adds the request to the devices stats update params

func (*DevicesStatsUpdateParams) SetTimeout

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

SetTimeout adds the timeout to the devices stats update params

func (*DevicesStatsUpdateParams) SetXRelayHostname

func (o *DevicesStatsUpdateParams) SetXRelayHostname(xRelayHostname string)

SetXRelayHostname adds the xRelayHostname to the devices stats update params

func (*DevicesStatsUpdateParams) WithContext

WithContext adds the context to the devices stats update params

func (*DevicesStatsUpdateParams) WithDefaults

WithDefaults hydrates default values in the devices stats update params (not the query body).

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

func (*DevicesStatsUpdateParams) WithHTTPClient

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

WithHTTPClient adds the HTTPClient to the devices stats update params

func (*DevicesStatsUpdateParams) WithRequest

WithRequest adds the request to the devices stats update params

func (*DevicesStatsUpdateParams) WithTimeout

WithTimeout adds the timeout to the devices stats update params

func (*DevicesStatsUpdateParams) WithXRelayHostname

func (o *DevicesStatsUpdateParams) WithXRelayHostname(xRelayHostname string) *DevicesStatsUpdateParams

WithXRelayHostname adds the xRelayHostname to the devices stats update params

func (*DevicesStatsUpdateParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type DevicesStatsUpdateReader

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

DevicesStatsUpdateReader is a Reader for the DevicesStatsUpdate structure.

func (*DevicesStatsUpdateReader) ReadResponse

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

ReadResponse reads a server response into the received o.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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