devices

package
v0.0.0-...-3e1e694 Latest Latest
Warning

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

Go to latest
Published: Aug 24, 2022 License: Apache-2.0 Imports: 11 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 devices API

func (*Client) GetDeviceVersionedConfig

func (a *Client) GetDeviceVersionedConfig(params *GetDeviceVersionedConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeviceVersionedConfigOK, error)

GetDeviceVersionedConfig gets device versioned config

func (*Client) PatchDeviceCommandStatus

func (a *Client) PatchDeviceCommandStatus(params *PatchDeviceCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchDeviceCommandStatusOK, error)

PatchDeviceCommandStatus patches device command status

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 {
	GetDeviceVersionedConfig(params *GetDeviceVersionedConfigParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*GetDeviceVersionedConfigOK, error)

	PatchDeviceCommandStatus(params *PatchDeviceCommandStatusParams, authInfo runtime.ClientAuthInfoWriter, opts ...ClientOption) (*PatchDeviceCommandStatusOK, 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 devices API client.

type GetDeviceVersionedConfigBadRequest

type GetDeviceVersionedConfigBadRequest struct {
	Payload *models.ErrorResponse
}
GetDeviceVersionedConfigBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewGetDeviceVersionedConfigBadRequest

func NewGetDeviceVersionedConfigBadRequest() *GetDeviceVersionedConfigBadRequest

NewGetDeviceVersionedConfigBadRequest creates a GetDeviceVersionedConfigBadRequest with default headers values

func (*GetDeviceVersionedConfigBadRequest) Error

func (*GetDeviceVersionedConfigBadRequest) GetPayload

type GetDeviceVersionedConfigInternalServerError

type GetDeviceVersionedConfigInternalServerError struct {
	Payload *models.ErrorResponse
}
GetDeviceVersionedConfigInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewGetDeviceVersionedConfigInternalServerError

func NewGetDeviceVersionedConfigInternalServerError() *GetDeviceVersionedConfigInternalServerError

NewGetDeviceVersionedConfigInternalServerError creates a GetDeviceVersionedConfigInternalServerError with default headers values

func (*GetDeviceVersionedConfigInternalServerError) Error

func (*GetDeviceVersionedConfigInternalServerError) GetPayload

type GetDeviceVersionedConfigNotFound

type GetDeviceVersionedConfigNotFound struct {
	Payload *models.ErrorResponse
}
GetDeviceVersionedConfigNotFound describes a response with status code 404, with default header values.

Tag not found

func NewGetDeviceVersionedConfigNotFound

func NewGetDeviceVersionedConfigNotFound() *GetDeviceVersionedConfigNotFound

NewGetDeviceVersionedConfigNotFound creates a GetDeviceVersionedConfigNotFound with default headers values

func (*GetDeviceVersionedConfigNotFound) Error

func (*GetDeviceVersionedConfigNotFound) GetPayload

type GetDeviceVersionedConfigOK

type GetDeviceVersionedConfigOK struct {
	Payload *models.DeviceConfigVersionedObject
}
GetDeviceVersionedConfigOK describes a response with status code 200, with default header values.

OK

func NewGetDeviceVersionedConfigOK

func NewGetDeviceVersionedConfigOK() *GetDeviceVersionedConfigOK

NewGetDeviceVersionedConfigOK creates a GetDeviceVersionedConfigOK with default headers values

func (*GetDeviceVersionedConfigOK) Error

func (*GetDeviceVersionedConfigOK) GetPayload

type GetDeviceVersionedConfigParams

type GetDeviceVersionedConfigParams struct {

	/* VersionID.

	   version ID
	*/
	VersionID int64

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

GetDeviceVersionedConfigParams contains all the parameters to send to the API endpoint

for the get device versioned config operation.

Typically these are written to a http.Request.

func NewGetDeviceVersionedConfigParams

func NewGetDeviceVersionedConfigParams() *GetDeviceVersionedConfigParams

NewGetDeviceVersionedConfigParams creates a new GetDeviceVersionedConfigParams 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 NewGetDeviceVersionedConfigParamsWithContext

func NewGetDeviceVersionedConfigParamsWithContext(ctx context.Context) *GetDeviceVersionedConfigParams

NewGetDeviceVersionedConfigParamsWithContext creates a new GetDeviceVersionedConfigParams object with the ability to set a context for a request.

func NewGetDeviceVersionedConfigParamsWithHTTPClient

func NewGetDeviceVersionedConfigParamsWithHTTPClient(client *http.Client) *GetDeviceVersionedConfigParams

NewGetDeviceVersionedConfigParamsWithHTTPClient creates a new GetDeviceVersionedConfigParams object with the ability to set a custom HTTPClient for a request.

func NewGetDeviceVersionedConfigParamsWithTimeout

func NewGetDeviceVersionedConfigParamsWithTimeout(timeout time.Duration) *GetDeviceVersionedConfigParams

NewGetDeviceVersionedConfigParamsWithTimeout creates a new GetDeviceVersionedConfigParams object with the ability to set a timeout on a request.

func (*GetDeviceVersionedConfigParams) SetContext

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

SetContext adds the context to the get device versioned config params

func (*GetDeviceVersionedConfigParams) SetDefaults

func (o *GetDeviceVersionedConfigParams) SetDefaults()

SetDefaults hydrates default values in the get device versioned config params (not the query body).

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

func (*GetDeviceVersionedConfigParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the get device versioned config params

func (*GetDeviceVersionedConfigParams) SetTimeout

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

SetTimeout adds the timeout to the get device versioned config params

func (*GetDeviceVersionedConfigParams) SetVersionID

func (o *GetDeviceVersionedConfigParams) SetVersionID(versionID int64)

SetVersionID adds the versionId to the get device versioned config params

func (*GetDeviceVersionedConfigParams) WithContext

WithContext adds the context to the get device versioned config params

func (*GetDeviceVersionedConfigParams) WithDefaults

WithDefaults hydrates default values in the get device versioned config params (not the query body).

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

func (*GetDeviceVersionedConfigParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the get device versioned config params

func (*GetDeviceVersionedConfigParams) WithTimeout

WithTimeout adds the timeout to the get device versioned config params

func (*GetDeviceVersionedConfigParams) WithVersionID

WithVersionID adds the versionID to the get device versioned config params

func (*GetDeviceVersionedConfigParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type GetDeviceVersionedConfigReader

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

GetDeviceVersionedConfigReader is a Reader for the GetDeviceVersionedConfig structure.

func (*GetDeviceVersionedConfigReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type GetDeviceVersionedConfigTooManyRequests

type GetDeviceVersionedConfigTooManyRequests struct {
	Payload *models.ErrorResponse
}
GetDeviceVersionedConfigTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewGetDeviceVersionedConfigTooManyRequests

func NewGetDeviceVersionedConfigTooManyRequests() *GetDeviceVersionedConfigTooManyRequests

NewGetDeviceVersionedConfigTooManyRequests creates a GetDeviceVersionedConfigTooManyRequests with default headers values

func (*GetDeviceVersionedConfigTooManyRequests) Error

func (*GetDeviceVersionedConfigTooManyRequests) GetPayload

type GetDeviceVersionedConfigUnauthorized

type GetDeviceVersionedConfigUnauthorized struct {
	Payload *models.ErrorResponse
}
GetDeviceVersionedConfigUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewGetDeviceVersionedConfigUnauthorized

func NewGetDeviceVersionedConfigUnauthorized() *GetDeviceVersionedConfigUnauthorized

NewGetDeviceVersionedConfigUnauthorized creates a GetDeviceVersionedConfigUnauthorized with default headers values

func (*GetDeviceVersionedConfigUnauthorized) Error

func (*GetDeviceVersionedConfigUnauthorized) GetPayload

type PatchDeviceCommandStatusBadRequest

type PatchDeviceCommandStatusBadRequest struct {
	Payload *models.ErrorResponse
}
PatchDeviceCommandStatusBadRequest describes a response with status code 400, with default header values.

Bad params suplied

func NewPatchDeviceCommandStatusBadRequest

func NewPatchDeviceCommandStatusBadRequest() *PatchDeviceCommandStatusBadRequest

NewPatchDeviceCommandStatusBadRequest creates a PatchDeviceCommandStatusBadRequest with default headers values

func (*PatchDeviceCommandStatusBadRequest) Error

func (*PatchDeviceCommandStatusBadRequest) GetPayload

type PatchDeviceCommandStatusInternalServerError

type PatchDeviceCommandStatusInternalServerError struct {
	Payload *models.ErrorResponse
}
PatchDeviceCommandStatusInternalServerError describes a response with status code 500, with default header values.

Internal server error

func NewPatchDeviceCommandStatusInternalServerError

func NewPatchDeviceCommandStatusInternalServerError() *PatchDeviceCommandStatusInternalServerError

NewPatchDeviceCommandStatusInternalServerError creates a PatchDeviceCommandStatusInternalServerError with default headers values

func (*PatchDeviceCommandStatusInternalServerError) Error

func (*PatchDeviceCommandStatusInternalServerError) GetPayload

type PatchDeviceCommandStatusNotFound

type PatchDeviceCommandStatusNotFound struct {
	Payload *models.ErrorResponse
}
PatchDeviceCommandStatusNotFound describes a response with status code 404, with default header values.

Tag not found

func NewPatchDeviceCommandStatusNotFound

func NewPatchDeviceCommandStatusNotFound() *PatchDeviceCommandStatusNotFound

NewPatchDeviceCommandStatusNotFound creates a PatchDeviceCommandStatusNotFound with default headers values

func (*PatchDeviceCommandStatusNotFound) Error

func (*PatchDeviceCommandStatusNotFound) GetPayload

type PatchDeviceCommandStatusOK

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

OK

func NewPatchDeviceCommandStatusOK

func NewPatchDeviceCommandStatusOK() *PatchDeviceCommandStatusOK

NewPatchDeviceCommandStatusOK creates a PatchDeviceCommandStatusOK with default headers values

func (*PatchDeviceCommandStatusOK) Error

type PatchDeviceCommandStatusParams

type PatchDeviceCommandStatusParams struct {

	// Body.
	Body *models.PatchCommandStatus

	/* CommandID.

	   Command ID
	*/
	CommandID string

	/* DeviceID.

	   Device ID
	*/
	DeviceID int64

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

PatchDeviceCommandStatusParams contains all the parameters to send to the API endpoint

for the patch device command status operation.

Typically these are written to a http.Request.

func NewPatchDeviceCommandStatusParams

func NewPatchDeviceCommandStatusParams() *PatchDeviceCommandStatusParams

NewPatchDeviceCommandStatusParams creates a new PatchDeviceCommandStatusParams 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 NewPatchDeviceCommandStatusParamsWithContext

func NewPatchDeviceCommandStatusParamsWithContext(ctx context.Context) *PatchDeviceCommandStatusParams

NewPatchDeviceCommandStatusParamsWithContext creates a new PatchDeviceCommandStatusParams object with the ability to set a context for a request.

func NewPatchDeviceCommandStatusParamsWithHTTPClient

func NewPatchDeviceCommandStatusParamsWithHTTPClient(client *http.Client) *PatchDeviceCommandStatusParams

NewPatchDeviceCommandStatusParamsWithHTTPClient creates a new PatchDeviceCommandStatusParams object with the ability to set a custom HTTPClient for a request.

func NewPatchDeviceCommandStatusParamsWithTimeout

func NewPatchDeviceCommandStatusParamsWithTimeout(timeout time.Duration) *PatchDeviceCommandStatusParams

NewPatchDeviceCommandStatusParamsWithTimeout creates a new PatchDeviceCommandStatusParams object with the ability to set a timeout on a request.

func (*PatchDeviceCommandStatusParams) SetBody

SetBody adds the body to the patch device command status params

func (*PatchDeviceCommandStatusParams) SetCommandID

func (o *PatchDeviceCommandStatusParams) SetCommandID(commandID string)

SetCommandID adds the commandId to the patch device command status params

func (*PatchDeviceCommandStatusParams) SetContext

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

SetContext adds the context to the patch device command status params

func (*PatchDeviceCommandStatusParams) SetDefaults

func (o *PatchDeviceCommandStatusParams) SetDefaults()

SetDefaults hydrates default values in the patch device command status params (not the query body).

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

func (*PatchDeviceCommandStatusParams) SetDeviceID

func (o *PatchDeviceCommandStatusParams) SetDeviceID(deviceID int64)

SetDeviceID adds the deviceId to the patch device command status params

func (*PatchDeviceCommandStatusParams) SetHTTPClient

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

SetHTTPClient adds the HTTPClient to the patch device command status params

func (*PatchDeviceCommandStatusParams) SetTimeout

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

SetTimeout adds the timeout to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithBody

WithBody adds the body to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithCommandID

WithCommandID adds the commandID to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithContext

WithContext adds the context to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithDefaults

WithDefaults hydrates default values in the patch device command status params (not the query body).

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

func (*PatchDeviceCommandStatusParams) WithDeviceID

WithDeviceID adds the deviceID to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithHTTPClient

WithHTTPClient adds the HTTPClient to the patch device command status params

func (*PatchDeviceCommandStatusParams) WithTimeout

WithTimeout adds the timeout to the patch device command status params

func (*PatchDeviceCommandStatusParams) WriteToRequest

WriteToRequest writes these params to a swagger request

type PatchDeviceCommandStatusReader

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

PatchDeviceCommandStatusReader is a Reader for the PatchDeviceCommandStatus structure.

func (*PatchDeviceCommandStatusReader) ReadResponse

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

ReadResponse reads a server response into the received o.

type PatchDeviceCommandStatusTooManyRequests

type PatchDeviceCommandStatusTooManyRequests struct {
	Payload *models.ErrorResponse
}
PatchDeviceCommandStatusTooManyRequests describes a response with status code 429, with default header values.

Too Many Requests

func NewPatchDeviceCommandStatusTooManyRequests

func NewPatchDeviceCommandStatusTooManyRequests() *PatchDeviceCommandStatusTooManyRequests

NewPatchDeviceCommandStatusTooManyRequests creates a PatchDeviceCommandStatusTooManyRequests with default headers values

func (*PatchDeviceCommandStatusTooManyRequests) Error

func (*PatchDeviceCommandStatusTooManyRequests) GetPayload

type PatchDeviceCommandStatusUnauthorized

type PatchDeviceCommandStatusUnauthorized struct {
	Payload *models.ErrorResponse
}
PatchDeviceCommandStatusUnauthorized describes a response with status code 401, with default header values.

Unauthorized

func NewPatchDeviceCommandStatusUnauthorized

func NewPatchDeviceCommandStatusUnauthorized() *PatchDeviceCommandStatusUnauthorized

NewPatchDeviceCommandStatusUnauthorized creates a PatchDeviceCommandStatusUnauthorized with default headers values

func (*PatchDeviceCommandStatusUnauthorized) Error

func (*PatchDeviceCommandStatusUnauthorized) GetPayload

Jump to

Keyboard shortcuts

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