Documentation
¶
Index ¶
- type Client
- func (a *Client) CreateDeviceEvents(params *CreateDeviceEventsParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDeviceEventsOK, error)
- func (a *Client) DeleteDevice(params *DeleteDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceOK, error)
- func (a *Client) ExecuteDeviceCommands(params *ExecuteDeviceCommandsParams, authInfo runtime.ClientAuthInfoWriter) (*ExecuteDeviceCommandsOK, error)
- func (a *Client) GetDevice(params *GetDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceOK, error)
- func (a *Client) GetDeviceComponentStatus(params *GetDeviceComponentStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceComponentStatusOK, error)
- func (a *Client) GetDeviceStatus(params *GetDeviceStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceStatusOK, error)
- func (a *Client) GetDeviceStatusByCapability(params *GetDeviceStatusByCapabilityParams, ...) (*GetDeviceStatusByCapabilityOK, error)
- func (a *Client) GetDevices(params *GetDevicesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDevicesOK, error)
- func (a *Client) InstallDevice(params *InstallDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*InstallDeviceOK, error)
- func (a *Client) SetTransport(transport runtime.ClientTransport)
- func (a *Client) UpdateDevice(params *UpdateDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceOK, error)
- type CreateDeviceEventsBadRequest
- type CreateDeviceEventsDefault
- type CreateDeviceEventsForbidden
- type CreateDeviceEventsOK
- type CreateDeviceEventsParams
- func NewCreateDeviceEventsParams() *CreateDeviceEventsParams
- func NewCreateDeviceEventsParamsWithContext(ctx context.Context) *CreateDeviceEventsParams
- func NewCreateDeviceEventsParamsWithHTTPClient(client *http.Client) *CreateDeviceEventsParams
- func NewCreateDeviceEventsParamsWithTimeout(timeout time.Duration) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) SetAuthorization(authorization string)
- func (o *CreateDeviceEventsParams) SetContext(ctx context.Context)
- func (o *CreateDeviceEventsParams) SetDeviceEventRequest(deviceEventRequest *models.DeviceEventsRequest)
- func (o *CreateDeviceEventsParams) SetDeviceID(deviceID string)
- func (o *CreateDeviceEventsParams) SetHTTPClient(client *http.Client)
- func (o *CreateDeviceEventsParams) SetTimeout(timeout time.Duration)
- func (o *CreateDeviceEventsParams) WithAuthorization(authorization string) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WithContext(ctx context.Context) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WithDeviceEventRequest(deviceEventRequest *models.DeviceEventsRequest) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WithDeviceID(deviceID string) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WithHTTPClient(client *http.Client) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WithTimeout(timeout time.Duration) *CreateDeviceEventsParams
- func (o *CreateDeviceEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type CreateDeviceEventsReader
- type CreateDeviceEventsTooManyRequests
- type CreateDeviceEventsUnauthorized
- type CreateDeviceEventsUnprocessableEntity
- type DeleteDeviceBadRequest
- type DeleteDeviceDefault
- type DeleteDeviceForbidden
- type DeleteDeviceOK
- type DeleteDeviceParams
- func (o *DeleteDeviceParams) SetAuthorization(authorization string)
- func (o *DeleteDeviceParams) SetContext(ctx context.Context)
- func (o *DeleteDeviceParams) SetDeviceID(deviceID string)
- func (o *DeleteDeviceParams) SetHTTPClient(client *http.Client)
- func (o *DeleteDeviceParams) SetTimeout(timeout time.Duration)
- func (o *DeleteDeviceParams) WithAuthorization(authorization string) *DeleteDeviceParams
- func (o *DeleteDeviceParams) WithContext(ctx context.Context) *DeleteDeviceParams
- func (o *DeleteDeviceParams) WithDeviceID(deviceID string) *DeleteDeviceParams
- func (o *DeleteDeviceParams) WithHTTPClient(client *http.Client) *DeleteDeviceParams
- func (o *DeleteDeviceParams) WithTimeout(timeout time.Duration) *DeleteDeviceParams
- func (o *DeleteDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type DeleteDeviceReader
- type DeleteDeviceTooManyRequests
- type DeleteDeviceUnauthorized
- type ExecuteDeviceCommandsBadRequest
- type ExecuteDeviceCommandsDefault
- type ExecuteDeviceCommandsForbidden
- type ExecuteDeviceCommandsOK
- type ExecuteDeviceCommandsParams
- func NewExecuteDeviceCommandsParams() *ExecuteDeviceCommandsParams
- func NewExecuteDeviceCommandsParamsWithContext(ctx context.Context) *ExecuteDeviceCommandsParams
- func NewExecuteDeviceCommandsParamsWithHTTPClient(client *http.Client) *ExecuteDeviceCommandsParams
- func NewExecuteDeviceCommandsParamsWithTimeout(timeout time.Duration) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) SetAuthorization(authorization string)
- func (o *ExecuteDeviceCommandsParams) SetContext(ctx context.Context)
- func (o *ExecuteDeviceCommandsParams) SetDeviceID(deviceID string)
- func (o *ExecuteDeviceCommandsParams) SetExecuteCapabilityCommand(executeCapabilityCommand *models.DeviceCommandsRequest)
- func (o *ExecuteDeviceCommandsParams) SetHTTPClient(client *http.Client)
- func (o *ExecuteDeviceCommandsParams) SetTimeout(timeout time.Duration)
- func (o *ExecuteDeviceCommandsParams) WithAuthorization(authorization string) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WithContext(ctx context.Context) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WithDeviceID(deviceID string) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WithExecuteCapabilityCommand(executeCapabilityCommand *models.DeviceCommandsRequest) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WithHTTPClient(client *http.Client) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WithTimeout(timeout time.Duration) *ExecuteDeviceCommandsParams
- func (o *ExecuteDeviceCommandsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type ExecuteDeviceCommandsReader
- type ExecuteDeviceCommandsTooManyRequests
- type ExecuteDeviceCommandsUnauthorized
- type ExecuteDeviceCommandsUnprocessableEntity
- type GetDeviceBadRequest
- type GetDeviceComponentStatusBadRequest
- type GetDeviceComponentStatusDefault
- type GetDeviceComponentStatusForbidden
- type GetDeviceComponentStatusOK
- type GetDeviceComponentStatusParams
- func NewGetDeviceComponentStatusParams() *GetDeviceComponentStatusParams
- func NewGetDeviceComponentStatusParamsWithContext(ctx context.Context) *GetDeviceComponentStatusParams
- func NewGetDeviceComponentStatusParamsWithHTTPClient(client *http.Client) *GetDeviceComponentStatusParams
- func NewGetDeviceComponentStatusParamsWithTimeout(timeout time.Duration) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) SetAuthorization(authorization string)
- func (o *GetDeviceComponentStatusParams) SetComponentID(componentID string)
- func (o *GetDeviceComponentStatusParams) SetContext(ctx context.Context)
- func (o *GetDeviceComponentStatusParams) SetDeviceID(deviceID string)
- func (o *GetDeviceComponentStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceComponentStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceComponentStatusParams) WithAuthorization(authorization string) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WithComponentID(componentID string) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WithContext(ctx context.Context) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WithDeviceID(deviceID string) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WithHTTPClient(client *http.Client) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WithTimeout(timeout time.Duration) *GetDeviceComponentStatusParams
- func (o *GetDeviceComponentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceComponentStatusReader
- type GetDeviceComponentStatusTooManyRequests
- type GetDeviceComponentStatusUnauthorized
- type GetDeviceDefault
- type GetDeviceForbidden
- type GetDeviceOK
- type GetDeviceParams
- func (o *GetDeviceParams) SetAuthorization(authorization string)
- func (o *GetDeviceParams) SetContext(ctx context.Context)
- func (o *GetDeviceParams) SetDeviceID(deviceID string)
- func (o *GetDeviceParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceParams) WithAuthorization(authorization string) *GetDeviceParams
- func (o *GetDeviceParams) WithContext(ctx context.Context) *GetDeviceParams
- func (o *GetDeviceParams) WithDeviceID(deviceID string) *GetDeviceParams
- func (o *GetDeviceParams) WithHTTPClient(client *http.Client) *GetDeviceParams
- func (o *GetDeviceParams) WithTimeout(timeout time.Duration) *GetDeviceParams
- func (o *GetDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceReader
- type GetDeviceStatusBadRequest
- type GetDeviceStatusByCapabilityBadRequest
- type GetDeviceStatusByCapabilityDefault
- type GetDeviceStatusByCapabilityForbidden
- type GetDeviceStatusByCapabilityOK
- type GetDeviceStatusByCapabilityParams
- func NewGetDeviceStatusByCapabilityParams() *GetDeviceStatusByCapabilityParams
- func NewGetDeviceStatusByCapabilityParamsWithContext(ctx context.Context) *GetDeviceStatusByCapabilityParams
- func NewGetDeviceStatusByCapabilityParamsWithHTTPClient(client *http.Client) *GetDeviceStatusByCapabilityParams
- func NewGetDeviceStatusByCapabilityParamsWithTimeout(timeout time.Duration) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) SetAuthorization(authorization string)
- func (o *GetDeviceStatusByCapabilityParams) SetCapabilityID(capabilityID string)
- func (o *GetDeviceStatusByCapabilityParams) SetComponentID(componentID string)
- func (o *GetDeviceStatusByCapabilityParams) SetContext(ctx context.Context)
- func (o *GetDeviceStatusByCapabilityParams) SetDeviceID(deviceID string)
- func (o *GetDeviceStatusByCapabilityParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceStatusByCapabilityParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceStatusByCapabilityParams) WithAuthorization(authorization string) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithCapabilityID(capabilityID string) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithComponentID(componentID string) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithContext(ctx context.Context) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithDeviceID(deviceID string) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithHTTPClient(client *http.Client) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WithTimeout(timeout time.Duration) *GetDeviceStatusByCapabilityParams
- func (o *GetDeviceStatusByCapabilityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceStatusByCapabilityReader
- type GetDeviceStatusByCapabilityTooManyRequests
- type GetDeviceStatusByCapabilityUnauthorized
- type GetDeviceStatusDefault
- type GetDeviceStatusForbidden
- type GetDeviceStatusOK
- type GetDeviceStatusParams
- func NewGetDeviceStatusParams() *GetDeviceStatusParams
- func NewGetDeviceStatusParamsWithContext(ctx context.Context) *GetDeviceStatusParams
- func NewGetDeviceStatusParamsWithHTTPClient(client *http.Client) *GetDeviceStatusParams
- func NewGetDeviceStatusParamsWithTimeout(timeout time.Duration) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) SetAuthorization(authorization string)
- func (o *GetDeviceStatusParams) SetContext(ctx context.Context)
- func (o *GetDeviceStatusParams) SetDeviceID(deviceID string)
- func (o *GetDeviceStatusParams) SetHTTPClient(client *http.Client)
- func (o *GetDeviceStatusParams) SetTimeout(timeout time.Duration)
- func (o *GetDeviceStatusParams) WithAuthorization(authorization string) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) WithContext(ctx context.Context) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) WithDeviceID(deviceID string) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) WithHTTPClient(client *http.Client) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) WithTimeout(timeout time.Duration) *GetDeviceStatusParams
- func (o *GetDeviceStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDeviceStatusReader
- type GetDeviceStatusTooManyRequests
- type GetDeviceStatusUnauthorized
- type GetDeviceTooManyRequests
- type GetDeviceUnauthorized
- type GetDevicesBadRequest
- type GetDevicesDefault
- type GetDevicesForbidden
- type GetDevicesOK
- type GetDevicesParams
- func (o *GetDevicesParams) SetAuthorization(authorization string)
- func (o *GetDevicesParams) SetCapability(capability []string)
- func (o *GetDevicesParams) SetContext(ctx context.Context)
- func (o *GetDevicesParams) SetDeviceID(deviceID []string)
- func (o *GetDevicesParams) SetHTTPClient(client *http.Client)
- func (o *GetDevicesParams) SetLocationID(locationID []string)
- func (o *GetDevicesParams) SetTimeout(timeout time.Duration)
- func (o *GetDevicesParams) WithAuthorization(authorization string) *GetDevicesParams
- func (o *GetDevicesParams) WithCapability(capability []string) *GetDevicesParams
- func (o *GetDevicesParams) WithContext(ctx context.Context) *GetDevicesParams
- func (o *GetDevicesParams) WithDeviceID(deviceID []string) *GetDevicesParams
- func (o *GetDevicesParams) WithHTTPClient(client *http.Client) *GetDevicesParams
- func (o *GetDevicesParams) WithLocationID(locationID []string) *GetDevicesParams
- func (o *GetDevicesParams) WithTimeout(timeout time.Duration) *GetDevicesParams
- func (o *GetDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type GetDevicesReader
- type GetDevicesTooManyRequests
- type GetDevicesUnauthorized
- type InstallDeviceBadRequest
- type InstallDeviceDefault
- type InstallDeviceForbidden
- type InstallDeviceOK
- type InstallDeviceParams
- func (o *InstallDeviceParams) SetAuthorization(authorization string)
- func (o *InstallDeviceParams) SetContext(ctx context.Context)
- func (o *InstallDeviceParams) SetHTTPClient(client *http.Client)
- func (o *InstallDeviceParams) SetInstallationRequest(installationRequest *models.DeviceInstallRequest)
- func (o *InstallDeviceParams) SetTimeout(timeout time.Duration)
- func (o *InstallDeviceParams) WithAuthorization(authorization string) *InstallDeviceParams
- func (o *InstallDeviceParams) WithContext(ctx context.Context) *InstallDeviceParams
- func (o *InstallDeviceParams) WithHTTPClient(client *http.Client) *InstallDeviceParams
- func (o *InstallDeviceParams) WithInstallationRequest(installationRequest *models.DeviceInstallRequest) *InstallDeviceParams
- func (o *InstallDeviceParams) WithTimeout(timeout time.Duration) *InstallDeviceParams
- func (o *InstallDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type InstallDeviceReader
- type InstallDeviceTooManyRequests
- type InstallDeviceUnauthorized
- type InstallDeviceUnprocessableEntity
- type UpdateDeviceBadRequest
- type UpdateDeviceDefault
- type UpdateDeviceForbidden
- type UpdateDeviceOK
- type UpdateDeviceParams
- func (o *UpdateDeviceParams) SetAuthorization(authorization string)
- func (o *UpdateDeviceParams) SetContext(ctx context.Context)
- func (o *UpdateDeviceParams) SetDeviceID(deviceID string)
- func (o *UpdateDeviceParams) SetHTTPClient(client *http.Client)
- func (o *UpdateDeviceParams) SetTimeout(timeout time.Duration)
- func (o *UpdateDeviceParams) SetUpdateDeviceRequest(updateDeviceRequest *models.UpdateDeviceRequest)
- func (o *UpdateDeviceParams) WithAuthorization(authorization string) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WithContext(ctx context.Context) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WithDeviceID(deviceID string) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WithHTTPClient(client *http.Client) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WithTimeout(timeout time.Duration) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WithUpdateDeviceRequest(updateDeviceRequest *models.UpdateDeviceRequest) *UpdateDeviceParams
- func (o *UpdateDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
- type UpdateDeviceReader
- type UpdateDeviceTooManyRequests
- type UpdateDeviceUnauthorized
- type UpdateDeviceUnprocessableEntity
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 New ¶
func New(transport runtime.ClientTransport, formats strfmt.Registry) *Client
New creates a new devices API client.
func (*Client) CreateDeviceEvents ¶
func (a *Client) CreateDeviceEvents(params *CreateDeviceEventsParams, authInfo runtime.ClientAuthInfoWriter) (*CreateDeviceEventsOK, error)
CreateDeviceEvents creates device events
Create events for a device. When a device is managed by a SmartApp then it is responsible for creating events to update the attributes of the device in the SmartThings platform. The token must be for a SmartApp and it must be the SmartApp that created the Device.
func (*Client) DeleteDevice ¶
func (a *Client) DeleteDevice(params *DeleteDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*DeleteDeviceOK, error)
DeleteDevice deletes a device
Delete a device by device id. If the token is for a SmartApp that created the device then it implicitly has permission for this api.
func (*Client) ExecuteDeviceCommands ¶
func (a *Client) ExecuteDeviceCommands(params *ExecuteDeviceCommandsParams, authInfo runtime.ClientAuthInfoWriter) (*ExecuteDeviceCommandsOK, error)
ExecuteDeviceCommands executes commands on device
Execute commands on a device.
func (*Client) GetDevice ¶
func (a *Client) GetDevice(params *GetDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceOK, error)
GetDevice gets a device s description
Get a device's description.
func (*Client) GetDeviceComponentStatus ¶
func (a *Client) GetDeviceComponentStatus(params *GetDeviceComponentStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceComponentStatusOK, error)
GetDeviceComponentStatus gets a device component s status
Get the status of all attributes of a the component. The results may be filtered if the requester only has permission to view a subset of the component's capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api.
func (*Client) GetDeviceStatus ¶
func (a *Client) GetDeviceStatus(params *GetDeviceStatusParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceStatusOK, error)
GetDeviceStatus gets the full status of a device
Get the current status of all of a device's component's attributes. The results may be filtered if the requester only has permission to view a subset of the device's components or capabilities. If the token is for a SmartApp that created the device then it implicitly has permission for this api.
func (*Client) GetDeviceStatusByCapability ¶
func (a *Client) GetDeviceStatusByCapability(params *GetDeviceStatusByCapabilityParams, authInfo runtime.ClientAuthInfoWriter) (*GetDeviceStatusByCapabilityOK, error)
GetDeviceStatusByCapability gets a capability s status
Get the current status of a device component's capability. If the token is for a SmartApp that created the device then it implicitly has permission for this api.
func (*Client) GetDevices ¶
func (a *Client) GetDevices(params *GetDevicesParams, authInfo runtime.ClientAuthInfoWriter) (*GetDevicesOK, error)
GetDevices lists devices
Get a list of devices.
func (*Client) InstallDevice ¶
func (a *Client) InstallDevice(params *InstallDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*InstallDeviceOK, error)
InstallDevice installs a device
Install a device. This is only available for SmartApp managed devices. The SmartApp that creates the device is responsible for handling commands for the device and updating the status of the device by creating events.
func (*Client) SetTransport ¶
func (a *Client) SetTransport(transport runtime.ClientTransport)
SetTransport changes the transport on the client
func (*Client) UpdateDevice ¶
func (a *Client) UpdateDevice(params *UpdateDeviceParams, authInfo runtime.ClientAuthInfoWriter) (*UpdateDeviceOK, error)
UpdateDevice updates a device
Update the properties of a device. If the token is for a SmartApp that created the device then it implicitly has permission for this api.
type CreateDeviceEventsBadRequest ¶
type CreateDeviceEventsBadRequest struct {
Payload *models.ErrorResponse
}
CreateDeviceEventsBadRequest handles this case with default header values.
Bad request
func NewCreateDeviceEventsBadRequest ¶
func NewCreateDeviceEventsBadRequest() *CreateDeviceEventsBadRequest
NewCreateDeviceEventsBadRequest creates a CreateDeviceEventsBadRequest with default headers values
func (*CreateDeviceEventsBadRequest) Error ¶
func (o *CreateDeviceEventsBadRequest) Error() string
type CreateDeviceEventsDefault ¶
type CreateDeviceEventsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
CreateDeviceEventsDefault handles this case with default header values.
Unexpected error
func NewCreateDeviceEventsDefault ¶
func NewCreateDeviceEventsDefault(code int) *CreateDeviceEventsDefault
NewCreateDeviceEventsDefault creates a CreateDeviceEventsDefault with default headers values
func (*CreateDeviceEventsDefault) Code ¶
func (o *CreateDeviceEventsDefault) Code() int
Code gets the status code for the create device events default response
func (*CreateDeviceEventsDefault) Error ¶
func (o *CreateDeviceEventsDefault) Error() string
type CreateDeviceEventsForbidden ¶
type CreateDeviceEventsForbidden struct { }
CreateDeviceEventsForbidden handles this case with default header values.
Not authorized
func NewCreateDeviceEventsForbidden ¶
func NewCreateDeviceEventsForbidden() *CreateDeviceEventsForbidden
NewCreateDeviceEventsForbidden creates a CreateDeviceEventsForbidden with default headers values
func (*CreateDeviceEventsForbidden) Error ¶
func (o *CreateDeviceEventsForbidden) Error() string
type CreateDeviceEventsOK ¶
type CreateDeviceEventsOK struct {
Payload models.CreateDeviceEventsResponse
}
CreateDeviceEventsOK handles this case with default header values.
Created events.
func NewCreateDeviceEventsOK ¶
func NewCreateDeviceEventsOK() *CreateDeviceEventsOK
NewCreateDeviceEventsOK creates a CreateDeviceEventsOK with default headers values
func (*CreateDeviceEventsOK) Error ¶
func (o *CreateDeviceEventsOK) Error() string
type CreateDeviceEventsParams ¶
type CreateDeviceEventsParams struct { /*Authorization OAuth token */ Authorization string /*DeviceEventRequest*/ DeviceEventRequest *models.DeviceEventsRequest /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
CreateDeviceEventsParams contains all the parameters to send to the API endpoint for the create device events operation typically these are written to a http.Request
func NewCreateDeviceEventsParams ¶
func NewCreateDeviceEventsParams() *CreateDeviceEventsParams
NewCreateDeviceEventsParams creates a new CreateDeviceEventsParams object with the default values initialized.
func NewCreateDeviceEventsParamsWithContext ¶
func NewCreateDeviceEventsParamsWithContext(ctx context.Context) *CreateDeviceEventsParams
NewCreateDeviceEventsParamsWithContext creates a new CreateDeviceEventsParams object with the default values initialized, and the ability to set a context for a request
func NewCreateDeviceEventsParamsWithHTTPClient ¶
func NewCreateDeviceEventsParamsWithHTTPClient(client *http.Client) *CreateDeviceEventsParams
NewCreateDeviceEventsParamsWithHTTPClient creates a new CreateDeviceEventsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewCreateDeviceEventsParamsWithTimeout ¶
func NewCreateDeviceEventsParamsWithTimeout(timeout time.Duration) *CreateDeviceEventsParams
NewCreateDeviceEventsParamsWithTimeout creates a new CreateDeviceEventsParams object with the default values initialized, and the ability to set a timeout on a request
func (*CreateDeviceEventsParams) SetAuthorization ¶
func (o *CreateDeviceEventsParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the create device events params
func (*CreateDeviceEventsParams) SetContext ¶
func (o *CreateDeviceEventsParams) SetContext(ctx context.Context)
SetContext adds the context to the create device events params
func (*CreateDeviceEventsParams) SetDeviceEventRequest ¶
func (o *CreateDeviceEventsParams) SetDeviceEventRequest(deviceEventRequest *models.DeviceEventsRequest)
SetDeviceEventRequest adds the deviceEventRequest to the create device events params
func (*CreateDeviceEventsParams) SetDeviceID ¶
func (o *CreateDeviceEventsParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the create device events params
func (*CreateDeviceEventsParams) SetHTTPClient ¶
func (o *CreateDeviceEventsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the create device events params
func (*CreateDeviceEventsParams) SetTimeout ¶
func (o *CreateDeviceEventsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the create device events params
func (*CreateDeviceEventsParams) WithAuthorization ¶
func (o *CreateDeviceEventsParams) WithAuthorization(authorization string) *CreateDeviceEventsParams
WithAuthorization adds the authorization to the create device events params
func (*CreateDeviceEventsParams) WithContext ¶
func (o *CreateDeviceEventsParams) WithContext(ctx context.Context) *CreateDeviceEventsParams
WithContext adds the context to the create device events params
func (*CreateDeviceEventsParams) WithDeviceEventRequest ¶
func (o *CreateDeviceEventsParams) WithDeviceEventRequest(deviceEventRequest *models.DeviceEventsRequest) *CreateDeviceEventsParams
WithDeviceEventRequest adds the deviceEventRequest to the create device events params
func (*CreateDeviceEventsParams) WithDeviceID ¶
func (o *CreateDeviceEventsParams) WithDeviceID(deviceID string) *CreateDeviceEventsParams
WithDeviceID adds the deviceID to the create device events params
func (*CreateDeviceEventsParams) WithHTTPClient ¶
func (o *CreateDeviceEventsParams) WithHTTPClient(client *http.Client) *CreateDeviceEventsParams
WithHTTPClient adds the HTTPClient to the create device events params
func (*CreateDeviceEventsParams) WithTimeout ¶
func (o *CreateDeviceEventsParams) WithTimeout(timeout time.Duration) *CreateDeviceEventsParams
WithTimeout adds the timeout to the create device events params
func (*CreateDeviceEventsParams) WriteToRequest ¶
func (o *CreateDeviceEventsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type CreateDeviceEventsReader ¶
type CreateDeviceEventsReader struct {
// contains filtered or unexported fields
}
CreateDeviceEventsReader is a Reader for the CreateDeviceEvents structure.
func (*CreateDeviceEventsReader) ReadResponse ¶
func (o *CreateDeviceEventsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type CreateDeviceEventsTooManyRequests ¶
type CreateDeviceEventsTooManyRequests struct {
Payload *models.ErrorResponse
}
CreateDeviceEventsTooManyRequests handles this case with default header values.
Too many requests
func NewCreateDeviceEventsTooManyRequests ¶
func NewCreateDeviceEventsTooManyRequests() *CreateDeviceEventsTooManyRequests
NewCreateDeviceEventsTooManyRequests creates a CreateDeviceEventsTooManyRequests with default headers values
func (*CreateDeviceEventsTooManyRequests) Error ¶
func (o *CreateDeviceEventsTooManyRequests) Error() string
type CreateDeviceEventsUnauthorized ¶
type CreateDeviceEventsUnauthorized struct { }
CreateDeviceEventsUnauthorized handles this case with default header values.
Not authenticated
func NewCreateDeviceEventsUnauthorized ¶
func NewCreateDeviceEventsUnauthorized() *CreateDeviceEventsUnauthorized
NewCreateDeviceEventsUnauthorized creates a CreateDeviceEventsUnauthorized with default headers values
func (*CreateDeviceEventsUnauthorized) Error ¶
func (o *CreateDeviceEventsUnauthorized) Error() string
type CreateDeviceEventsUnprocessableEntity ¶
type CreateDeviceEventsUnprocessableEntity struct {
Payload *models.ErrorResponse
}
CreateDeviceEventsUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewCreateDeviceEventsUnprocessableEntity ¶
func NewCreateDeviceEventsUnprocessableEntity() *CreateDeviceEventsUnprocessableEntity
NewCreateDeviceEventsUnprocessableEntity creates a CreateDeviceEventsUnprocessableEntity with default headers values
func (*CreateDeviceEventsUnprocessableEntity) Error ¶
func (o *CreateDeviceEventsUnprocessableEntity) Error() string
type DeleteDeviceBadRequest ¶
type DeleteDeviceBadRequest struct {
Payload *models.ErrorResponse
}
DeleteDeviceBadRequest handles this case with default header values.
Bad request
func NewDeleteDeviceBadRequest ¶
func NewDeleteDeviceBadRequest() *DeleteDeviceBadRequest
NewDeleteDeviceBadRequest creates a DeleteDeviceBadRequest with default headers values
func (*DeleteDeviceBadRequest) Error ¶
func (o *DeleteDeviceBadRequest) Error() string
type DeleteDeviceDefault ¶
type DeleteDeviceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
DeleteDeviceDefault handles this case with default header values.
Unexpected error
func NewDeleteDeviceDefault ¶
func NewDeleteDeviceDefault(code int) *DeleteDeviceDefault
NewDeleteDeviceDefault creates a DeleteDeviceDefault with default headers values
func (*DeleteDeviceDefault) Code ¶
func (o *DeleteDeviceDefault) Code() int
Code gets the status code for the delete device default response
func (*DeleteDeviceDefault) Error ¶
func (o *DeleteDeviceDefault) Error() string
type DeleteDeviceForbidden ¶
type DeleteDeviceForbidden struct { }
DeleteDeviceForbidden handles this case with default header values.
Not authorized
func NewDeleteDeviceForbidden ¶
func NewDeleteDeviceForbidden() *DeleteDeviceForbidden
NewDeleteDeviceForbidden creates a DeleteDeviceForbidden with default headers values
func (*DeleteDeviceForbidden) Error ¶
func (o *DeleteDeviceForbidden) Error() string
type DeleteDeviceOK ¶
type DeleteDeviceOK struct {
Payload models.DeleteDeviceCommandsResponse
}
DeleteDeviceOK handles this case with default header values.
Device deleted.
func NewDeleteDeviceOK ¶
func NewDeleteDeviceOK() *DeleteDeviceOK
NewDeleteDeviceOK creates a DeleteDeviceOK with default headers values
func (*DeleteDeviceOK) Error ¶
func (o *DeleteDeviceOK) Error() string
type DeleteDeviceParams ¶
type DeleteDeviceParams struct { /*Authorization OAuth token */ Authorization string /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
DeleteDeviceParams contains all the parameters to send to the API endpoint for the delete device operation typically these are written to a http.Request
func NewDeleteDeviceParams ¶
func NewDeleteDeviceParams() *DeleteDeviceParams
NewDeleteDeviceParams creates a new DeleteDeviceParams object with the default values initialized.
func NewDeleteDeviceParamsWithContext ¶
func NewDeleteDeviceParamsWithContext(ctx context.Context) *DeleteDeviceParams
NewDeleteDeviceParamsWithContext creates a new DeleteDeviceParams object with the default values initialized, and the ability to set a context for a request
func NewDeleteDeviceParamsWithHTTPClient ¶
func NewDeleteDeviceParamsWithHTTPClient(client *http.Client) *DeleteDeviceParams
NewDeleteDeviceParamsWithHTTPClient creates a new DeleteDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewDeleteDeviceParamsWithTimeout ¶
func NewDeleteDeviceParamsWithTimeout(timeout time.Duration) *DeleteDeviceParams
NewDeleteDeviceParamsWithTimeout creates a new DeleteDeviceParams object with the default values initialized, and the ability to set a timeout on a request
func (*DeleteDeviceParams) SetAuthorization ¶
func (o *DeleteDeviceParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the delete device params
func (*DeleteDeviceParams) SetContext ¶
func (o *DeleteDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the delete device params
func (*DeleteDeviceParams) SetDeviceID ¶
func (o *DeleteDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the delete device params
func (*DeleteDeviceParams) SetHTTPClient ¶
func (o *DeleteDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the delete device params
func (*DeleteDeviceParams) SetTimeout ¶
func (o *DeleteDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the delete device params
func (*DeleteDeviceParams) WithAuthorization ¶
func (o *DeleteDeviceParams) WithAuthorization(authorization string) *DeleteDeviceParams
WithAuthorization adds the authorization to the delete device params
func (*DeleteDeviceParams) WithContext ¶
func (o *DeleteDeviceParams) WithContext(ctx context.Context) *DeleteDeviceParams
WithContext adds the context to the delete device params
func (*DeleteDeviceParams) WithDeviceID ¶
func (o *DeleteDeviceParams) WithDeviceID(deviceID string) *DeleteDeviceParams
WithDeviceID adds the deviceID to the delete device params
func (*DeleteDeviceParams) WithHTTPClient ¶
func (o *DeleteDeviceParams) WithHTTPClient(client *http.Client) *DeleteDeviceParams
WithHTTPClient adds the HTTPClient to the delete device params
func (*DeleteDeviceParams) WithTimeout ¶
func (o *DeleteDeviceParams) WithTimeout(timeout time.Duration) *DeleteDeviceParams
WithTimeout adds the timeout to the delete device params
func (*DeleteDeviceParams) WriteToRequest ¶
func (o *DeleteDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type DeleteDeviceReader ¶
type DeleteDeviceReader struct {
// contains filtered or unexported fields
}
DeleteDeviceReader is a Reader for the DeleteDevice structure.
func (*DeleteDeviceReader) ReadResponse ¶
func (o *DeleteDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type DeleteDeviceTooManyRequests ¶
type DeleteDeviceTooManyRequests struct {
Payload *models.ErrorResponse
}
DeleteDeviceTooManyRequests handles this case with default header values.
Too many requests
func NewDeleteDeviceTooManyRequests ¶
func NewDeleteDeviceTooManyRequests() *DeleteDeviceTooManyRequests
NewDeleteDeviceTooManyRequests creates a DeleteDeviceTooManyRequests with default headers values
func (*DeleteDeviceTooManyRequests) Error ¶
func (o *DeleteDeviceTooManyRequests) Error() string
type DeleteDeviceUnauthorized ¶
type DeleteDeviceUnauthorized struct { }
DeleteDeviceUnauthorized handles this case with default header values.
Not authenticated
func NewDeleteDeviceUnauthorized ¶
func NewDeleteDeviceUnauthorized() *DeleteDeviceUnauthorized
NewDeleteDeviceUnauthorized creates a DeleteDeviceUnauthorized with default headers values
func (*DeleteDeviceUnauthorized) Error ¶
func (o *DeleteDeviceUnauthorized) Error() string
type ExecuteDeviceCommandsBadRequest ¶
type ExecuteDeviceCommandsBadRequest struct {
Payload *models.ErrorResponse
}
ExecuteDeviceCommandsBadRequest handles this case with default header values.
Bad request
func NewExecuteDeviceCommandsBadRequest ¶
func NewExecuteDeviceCommandsBadRequest() *ExecuteDeviceCommandsBadRequest
NewExecuteDeviceCommandsBadRequest creates a ExecuteDeviceCommandsBadRequest with default headers values
func (*ExecuteDeviceCommandsBadRequest) Error ¶
func (o *ExecuteDeviceCommandsBadRequest) Error() string
type ExecuteDeviceCommandsDefault ¶
type ExecuteDeviceCommandsDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
ExecuteDeviceCommandsDefault handles this case with default header values.
Unexpected error
func NewExecuteDeviceCommandsDefault ¶
func NewExecuteDeviceCommandsDefault(code int) *ExecuteDeviceCommandsDefault
NewExecuteDeviceCommandsDefault creates a ExecuteDeviceCommandsDefault with default headers values
func (*ExecuteDeviceCommandsDefault) Code ¶
func (o *ExecuteDeviceCommandsDefault) Code() int
Code gets the status code for the execute device commands default response
func (*ExecuteDeviceCommandsDefault) Error ¶
func (o *ExecuteDeviceCommandsDefault) Error() string
type ExecuteDeviceCommandsForbidden ¶
type ExecuteDeviceCommandsForbidden struct { }
ExecuteDeviceCommandsForbidden handles this case with default header values.
Not authorized
func NewExecuteDeviceCommandsForbidden ¶
func NewExecuteDeviceCommandsForbidden() *ExecuteDeviceCommandsForbidden
NewExecuteDeviceCommandsForbidden creates a ExecuteDeviceCommandsForbidden with default headers values
func (*ExecuteDeviceCommandsForbidden) Error ¶
func (o *ExecuteDeviceCommandsForbidden) Error() string
type ExecuteDeviceCommandsOK ¶
type ExecuteDeviceCommandsOK struct {
Payload models.CreateDeviceCommandsResponse
}
ExecuteDeviceCommandsOK handles this case with default header values.
Created commands.
func NewExecuteDeviceCommandsOK ¶
func NewExecuteDeviceCommandsOK() *ExecuteDeviceCommandsOK
NewExecuteDeviceCommandsOK creates a ExecuteDeviceCommandsOK with default headers values
func (*ExecuteDeviceCommandsOK) Error ¶
func (o *ExecuteDeviceCommandsOK) Error() string
type ExecuteDeviceCommandsParams ¶
type ExecuteDeviceCommandsParams struct { /*Authorization OAuth token */ Authorization string /*DeviceID the device ID */ DeviceID string /*ExecuteCapabilityCommand*/ ExecuteCapabilityCommand *models.DeviceCommandsRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
ExecuteDeviceCommandsParams contains all the parameters to send to the API endpoint for the execute device commands operation typically these are written to a http.Request
func NewExecuteDeviceCommandsParams ¶
func NewExecuteDeviceCommandsParams() *ExecuteDeviceCommandsParams
NewExecuteDeviceCommandsParams creates a new ExecuteDeviceCommandsParams object with the default values initialized.
func NewExecuteDeviceCommandsParamsWithContext ¶
func NewExecuteDeviceCommandsParamsWithContext(ctx context.Context) *ExecuteDeviceCommandsParams
NewExecuteDeviceCommandsParamsWithContext creates a new ExecuteDeviceCommandsParams object with the default values initialized, and the ability to set a context for a request
func NewExecuteDeviceCommandsParamsWithHTTPClient ¶
func NewExecuteDeviceCommandsParamsWithHTTPClient(client *http.Client) *ExecuteDeviceCommandsParams
NewExecuteDeviceCommandsParamsWithHTTPClient creates a new ExecuteDeviceCommandsParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewExecuteDeviceCommandsParamsWithTimeout ¶
func NewExecuteDeviceCommandsParamsWithTimeout(timeout time.Duration) *ExecuteDeviceCommandsParams
NewExecuteDeviceCommandsParamsWithTimeout creates a new ExecuteDeviceCommandsParams object with the default values initialized, and the ability to set a timeout on a request
func (*ExecuteDeviceCommandsParams) SetAuthorization ¶
func (o *ExecuteDeviceCommandsParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the execute device commands params
func (*ExecuteDeviceCommandsParams) SetContext ¶
func (o *ExecuteDeviceCommandsParams) SetContext(ctx context.Context)
SetContext adds the context to the execute device commands params
func (*ExecuteDeviceCommandsParams) SetDeviceID ¶
func (o *ExecuteDeviceCommandsParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the execute device commands params
func (*ExecuteDeviceCommandsParams) SetExecuteCapabilityCommand ¶
func (o *ExecuteDeviceCommandsParams) SetExecuteCapabilityCommand(executeCapabilityCommand *models.DeviceCommandsRequest)
SetExecuteCapabilityCommand adds the executeCapabilityCommand to the execute device commands params
func (*ExecuteDeviceCommandsParams) SetHTTPClient ¶
func (o *ExecuteDeviceCommandsParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the execute device commands params
func (*ExecuteDeviceCommandsParams) SetTimeout ¶
func (o *ExecuteDeviceCommandsParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithAuthorization ¶
func (o *ExecuteDeviceCommandsParams) WithAuthorization(authorization string) *ExecuteDeviceCommandsParams
WithAuthorization adds the authorization to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithContext ¶
func (o *ExecuteDeviceCommandsParams) WithContext(ctx context.Context) *ExecuteDeviceCommandsParams
WithContext adds the context to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithDeviceID ¶
func (o *ExecuteDeviceCommandsParams) WithDeviceID(deviceID string) *ExecuteDeviceCommandsParams
WithDeviceID adds the deviceID to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithExecuteCapabilityCommand ¶
func (o *ExecuteDeviceCommandsParams) WithExecuteCapabilityCommand(executeCapabilityCommand *models.DeviceCommandsRequest) *ExecuteDeviceCommandsParams
WithExecuteCapabilityCommand adds the executeCapabilityCommand to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithHTTPClient ¶
func (o *ExecuteDeviceCommandsParams) WithHTTPClient(client *http.Client) *ExecuteDeviceCommandsParams
WithHTTPClient adds the HTTPClient to the execute device commands params
func (*ExecuteDeviceCommandsParams) WithTimeout ¶
func (o *ExecuteDeviceCommandsParams) WithTimeout(timeout time.Duration) *ExecuteDeviceCommandsParams
WithTimeout adds the timeout to the execute device commands params
func (*ExecuteDeviceCommandsParams) WriteToRequest ¶
func (o *ExecuteDeviceCommandsParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type ExecuteDeviceCommandsReader ¶
type ExecuteDeviceCommandsReader struct {
// contains filtered or unexported fields
}
ExecuteDeviceCommandsReader is a Reader for the ExecuteDeviceCommands structure.
func (*ExecuteDeviceCommandsReader) ReadResponse ¶
func (o *ExecuteDeviceCommandsReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type ExecuteDeviceCommandsTooManyRequests ¶
type ExecuteDeviceCommandsTooManyRequests struct {
Payload *models.ErrorResponse
}
ExecuteDeviceCommandsTooManyRequests handles this case with default header values.
Too many requests
func NewExecuteDeviceCommandsTooManyRequests ¶
func NewExecuteDeviceCommandsTooManyRequests() *ExecuteDeviceCommandsTooManyRequests
NewExecuteDeviceCommandsTooManyRequests creates a ExecuteDeviceCommandsTooManyRequests with default headers values
func (*ExecuteDeviceCommandsTooManyRequests) Error ¶
func (o *ExecuteDeviceCommandsTooManyRequests) Error() string
type ExecuteDeviceCommandsUnauthorized ¶
type ExecuteDeviceCommandsUnauthorized struct { }
ExecuteDeviceCommandsUnauthorized handles this case with default header values.
Not authenticated
func NewExecuteDeviceCommandsUnauthorized ¶
func NewExecuteDeviceCommandsUnauthorized() *ExecuteDeviceCommandsUnauthorized
NewExecuteDeviceCommandsUnauthorized creates a ExecuteDeviceCommandsUnauthorized with default headers values
func (*ExecuteDeviceCommandsUnauthorized) Error ¶
func (o *ExecuteDeviceCommandsUnauthorized) Error() string
type ExecuteDeviceCommandsUnprocessableEntity ¶
type ExecuteDeviceCommandsUnprocessableEntity struct {
Payload *models.ErrorResponse
}
ExecuteDeviceCommandsUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewExecuteDeviceCommandsUnprocessableEntity ¶
func NewExecuteDeviceCommandsUnprocessableEntity() *ExecuteDeviceCommandsUnprocessableEntity
NewExecuteDeviceCommandsUnprocessableEntity creates a ExecuteDeviceCommandsUnprocessableEntity with default headers values
func (*ExecuteDeviceCommandsUnprocessableEntity) Error ¶
func (o *ExecuteDeviceCommandsUnprocessableEntity) Error() string
type GetDeviceBadRequest ¶
type GetDeviceBadRequest struct {
Payload *models.ErrorResponse
}
GetDeviceBadRequest handles this case with default header values.
Bad request
func NewGetDeviceBadRequest ¶
func NewGetDeviceBadRequest() *GetDeviceBadRequest
NewGetDeviceBadRequest creates a GetDeviceBadRequest with default headers values
func (*GetDeviceBadRequest) Error ¶
func (o *GetDeviceBadRequest) Error() string
type GetDeviceComponentStatusBadRequest ¶
type GetDeviceComponentStatusBadRequest struct {
Payload *models.ErrorResponse
}
GetDeviceComponentStatusBadRequest handles this case with default header values.
Bad request
func NewGetDeviceComponentStatusBadRequest ¶
func NewGetDeviceComponentStatusBadRequest() *GetDeviceComponentStatusBadRequest
NewGetDeviceComponentStatusBadRequest creates a GetDeviceComponentStatusBadRequest with default headers values
func (*GetDeviceComponentStatusBadRequest) Error ¶
func (o *GetDeviceComponentStatusBadRequest) Error() string
type GetDeviceComponentStatusDefault ¶
type GetDeviceComponentStatusDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDeviceComponentStatusDefault handles this case with default header values.
Unexpected error
func NewGetDeviceComponentStatusDefault ¶
func NewGetDeviceComponentStatusDefault(code int) *GetDeviceComponentStatusDefault
NewGetDeviceComponentStatusDefault creates a GetDeviceComponentStatusDefault with default headers values
func (*GetDeviceComponentStatusDefault) Code ¶
func (o *GetDeviceComponentStatusDefault) Code() int
Code gets the status code for the get device component status default response
func (*GetDeviceComponentStatusDefault) Error ¶
func (o *GetDeviceComponentStatusDefault) Error() string
type GetDeviceComponentStatusForbidden ¶
type GetDeviceComponentStatusForbidden struct { }
GetDeviceComponentStatusForbidden handles this case with default header values.
Not authorized
func NewGetDeviceComponentStatusForbidden ¶
func NewGetDeviceComponentStatusForbidden() *GetDeviceComponentStatusForbidden
NewGetDeviceComponentStatusForbidden creates a GetDeviceComponentStatusForbidden with default headers values
func (*GetDeviceComponentStatusForbidden) Error ¶
func (o *GetDeviceComponentStatusForbidden) Error() string
type GetDeviceComponentStatusOK ¶
type GetDeviceComponentStatusOK struct {
Payload models.ComponentStatus
}
GetDeviceComponentStatusOK handles this case with default header values.
Successful return current status of device component's attributes.
func NewGetDeviceComponentStatusOK ¶
func NewGetDeviceComponentStatusOK() *GetDeviceComponentStatusOK
NewGetDeviceComponentStatusOK creates a GetDeviceComponentStatusOK with default headers values
func (*GetDeviceComponentStatusOK) Error ¶
func (o *GetDeviceComponentStatusOK) Error() string
type GetDeviceComponentStatusParams ¶
type GetDeviceComponentStatusParams struct { /*Authorization OAuth token */ Authorization string /*ComponentID The name of the component. */ ComponentID string /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDeviceComponentStatusParams contains all the parameters to send to the API endpoint for the get device component status operation typically these are written to a http.Request
func NewGetDeviceComponentStatusParams ¶
func NewGetDeviceComponentStatusParams() *GetDeviceComponentStatusParams
NewGetDeviceComponentStatusParams creates a new GetDeviceComponentStatusParams object with the default values initialized.
func NewGetDeviceComponentStatusParamsWithContext ¶
func NewGetDeviceComponentStatusParamsWithContext(ctx context.Context) *GetDeviceComponentStatusParams
NewGetDeviceComponentStatusParamsWithContext creates a new GetDeviceComponentStatusParams object with the default values initialized, and the ability to set a context for a request
func NewGetDeviceComponentStatusParamsWithHTTPClient ¶
func NewGetDeviceComponentStatusParamsWithHTTPClient(client *http.Client) *GetDeviceComponentStatusParams
NewGetDeviceComponentStatusParamsWithHTTPClient creates a new GetDeviceComponentStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDeviceComponentStatusParamsWithTimeout ¶
func NewGetDeviceComponentStatusParamsWithTimeout(timeout time.Duration) *GetDeviceComponentStatusParams
NewGetDeviceComponentStatusParamsWithTimeout creates a new GetDeviceComponentStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDeviceComponentStatusParams) SetAuthorization ¶
func (o *GetDeviceComponentStatusParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get device component status params
func (*GetDeviceComponentStatusParams) SetComponentID ¶
func (o *GetDeviceComponentStatusParams) SetComponentID(componentID string)
SetComponentID adds the componentId to the get device component status params
func (*GetDeviceComponentStatusParams) SetContext ¶
func (o *GetDeviceComponentStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get device component status params
func (*GetDeviceComponentStatusParams) SetDeviceID ¶
func (o *GetDeviceComponentStatusParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get device component status params
func (*GetDeviceComponentStatusParams) SetHTTPClient ¶
func (o *GetDeviceComponentStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get device component status params
func (*GetDeviceComponentStatusParams) SetTimeout ¶
func (o *GetDeviceComponentStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get device component status params
func (*GetDeviceComponentStatusParams) WithAuthorization ¶
func (o *GetDeviceComponentStatusParams) WithAuthorization(authorization string) *GetDeviceComponentStatusParams
WithAuthorization adds the authorization to the get device component status params
func (*GetDeviceComponentStatusParams) WithComponentID ¶
func (o *GetDeviceComponentStatusParams) WithComponentID(componentID string) *GetDeviceComponentStatusParams
WithComponentID adds the componentID to the get device component status params
func (*GetDeviceComponentStatusParams) WithContext ¶
func (o *GetDeviceComponentStatusParams) WithContext(ctx context.Context) *GetDeviceComponentStatusParams
WithContext adds the context to the get device component status params
func (*GetDeviceComponentStatusParams) WithDeviceID ¶
func (o *GetDeviceComponentStatusParams) WithDeviceID(deviceID string) *GetDeviceComponentStatusParams
WithDeviceID adds the deviceID to the get device component status params
func (*GetDeviceComponentStatusParams) WithHTTPClient ¶
func (o *GetDeviceComponentStatusParams) WithHTTPClient(client *http.Client) *GetDeviceComponentStatusParams
WithHTTPClient adds the HTTPClient to the get device component status params
func (*GetDeviceComponentStatusParams) WithTimeout ¶
func (o *GetDeviceComponentStatusParams) WithTimeout(timeout time.Duration) *GetDeviceComponentStatusParams
WithTimeout adds the timeout to the get device component status params
func (*GetDeviceComponentStatusParams) WriteToRequest ¶
func (o *GetDeviceComponentStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeviceComponentStatusReader ¶
type GetDeviceComponentStatusReader struct {
// contains filtered or unexported fields
}
GetDeviceComponentStatusReader is a Reader for the GetDeviceComponentStatus structure.
func (*GetDeviceComponentStatusReader) ReadResponse ¶
func (o *GetDeviceComponentStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDeviceComponentStatusTooManyRequests ¶
type GetDeviceComponentStatusTooManyRequests struct {
Payload *models.ErrorResponse
}
GetDeviceComponentStatusTooManyRequests handles this case with default header values.
Too many requests
func NewGetDeviceComponentStatusTooManyRequests ¶
func NewGetDeviceComponentStatusTooManyRequests() *GetDeviceComponentStatusTooManyRequests
NewGetDeviceComponentStatusTooManyRequests creates a GetDeviceComponentStatusTooManyRequests with default headers values
func (*GetDeviceComponentStatusTooManyRequests) Error ¶
func (o *GetDeviceComponentStatusTooManyRequests) Error() string
type GetDeviceComponentStatusUnauthorized ¶
type GetDeviceComponentStatusUnauthorized struct { }
GetDeviceComponentStatusUnauthorized handles this case with default header values.
Not authenticated
func NewGetDeviceComponentStatusUnauthorized ¶
func NewGetDeviceComponentStatusUnauthorized() *GetDeviceComponentStatusUnauthorized
NewGetDeviceComponentStatusUnauthorized creates a GetDeviceComponentStatusUnauthorized with default headers values
func (*GetDeviceComponentStatusUnauthorized) Error ¶
func (o *GetDeviceComponentStatusUnauthorized) Error() string
type GetDeviceDefault ¶
type GetDeviceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDeviceDefault handles this case with default header values.
Unexpected error
func NewGetDeviceDefault ¶
func NewGetDeviceDefault(code int) *GetDeviceDefault
NewGetDeviceDefault creates a GetDeviceDefault with default headers values
func (*GetDeviceDefault) Code ¶
func (o *GetDeviceDefault) Code() int
Code gets the status code for the get device default response
func (*GetDeviceDefault) Error ¶
func (o *GetDeviceDefault) Error() string
type GetDeviceForbidden ¶
type GetDeviceForbidden struct { }
GetDeviceForbidden handles this case with default header values.
Not authorized
func NewGetDeviceForbidden ¶
func NewGetDeviceForbidden() *GetDeviceForbidden
NewGetDeviceForbidden creates a GetDeviceForbidden with default headers values
func (*GetDeviceForbidden) Error ¶
func (o *GetDeviceForbidden) Error() string
type GetDeviceOK ¶
GetDeviceOK handles this case with default header values.
A Device
func NewGetDeviceOK ¶
func NewGetDeviceOK() *GetDeviceOK
NewGetDeviceOK creates a GetDeviceOK with default headers values
func (*GetDeviceOK) Error ¶
func (o *GetDeviceOK) Error() string
type GetDeviceParams ¶
type GetDeviceParams struct { /*Authorization OAuth token */ Authorization string /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDeviceParams contains all the parameters to send to the API endpoint for the get device operation typically these are written to a http.Request
func NewGetDeviceParams ¶
func NewGetDeviceParams() *GetDeviceParams
NewGetDeviceParams creates a new GetDeviceParams object with the default values initialized.
func NewGetDeviceParamsWithContext ¶
func NewGetDeviceParamsWithContext(ctx context.Context) *GetDeviceParams
NewGetDeviceParamsWithContext creates a new GetDeviceParams object with the default values initialized, and the ability to set a context for a request
func NewGetDeviceParamsWithHTTPClient ¶
func NewGetDeviceParamsWithHTTPClient(client *http.Client) *GetDeviceParams
NewGetDeviceParamsWithHTTPClient creates a new GetDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDeviceParamsWithTimeout ¶
func NewGetDeviceParamsWithTimeout(timeout time.Duration) *GetDeviceParams
NewGetDeviceParamsWithTimeout creates a new GetDeviceParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDeviceParams) SetAuthorization ¶
func (o *GetDeviceParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get device params
func (*GetDeviceParams) SetContext ¶
func (o *GetDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the get device params
func (*GetDeviceParams) SetDeviceID ¶
func (o *GetDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get device params
func (*GetDeviceParams) SetHTTPClient ¶
func (o *GetDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get device params
func (*GetDeviceParams) SetTimeout ¶
func (o *GetDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get device params
func (*GetDeviceParams) WithAuthorization ¶
func (o *GetDeviceParams) WithAuthorization(authorization string) *GetDeviceParams
WithAuthorization adds the authorization to the get device params
func (*GetDeviceParams) WithContext ¶
func (o *GetDeviceParams) WithContext(ctx context.Context) *GetDeviceParams
WithContext adds the context to the get device params
func (*GetDeviceParams) WithDeviceID ¶
func (o *GetDeviceParams) WithDeviceID(deviceID string) *GetDeviceParams
WithDeviceID adds the deviceID to the get device params
func (*GetDeviceParams) WithHTTPClient ¶
func (o *GetDeviceParams) WithHTTPClient(client *http.Client) *GetDeviceParams
WithHTTPClient adds the HTTPClient to the get device params
func (*GetDeviceParams) WithTimeout ¶
func (o *GetDeviceParams) WithTimeout(timeout time.Duration) *GetDeviceParams
WithTimeout adds the timeout to the get device params
func (*GetDeviceParams) WriteToRequest ¶
func (o *GetDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeviceReader ¶
type GetDeviceReader struct {
// contains filtered or unexported fields
}
GetDeviceReader is a Reader for the GetDevice structure.
func (*GetDeviceReader) ReadResponse ¶
func (o *GetDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDeviceStatusBadRequest ¶
type GetDeviceStatusBadRequest struct {
Payload *models.ErrorResponse
}
GetDeviceStatusBadRequest handles this case with default header values.
Bad request
func NewGetDeviceStatusBadRequest ¶
func NewGetDeviceStatusBadRequest() *GetDeviceStatusBadRequest
NewGetDeviceStatusBadRequest creates a GetDeviceStatusBadRequest with default headers values
func (*GetDeviceStatusBadRequest) Error ¶
func (o *GetDeviceStatusBadRequest) Error() string
type GetDeviceStatusByCapabilityBadRequest ¶
type GetDeviceStatusByCapabilityBadRequest struct {
Payload *models.ErrorResponse
}
GetDeviceStatusByCapabilityBadRequest handles this case with default header values.
Bad request
func NewGetDeviceStatusByCapabilityBadRequest ¶
func NewGetDeviceStatusByCapabilityBadRequest() *GetDeviceStatusByCapabilityBadRequest
NewGetDeviceStatusByCapabilityBadRequest creates a GetDeviceStatusByCapabilityBadRequest with default headers values
func (*GetDeviceStatusByCapabilityBadRequest) Error ¶
func (o *GetDeviceStatusByCapabilityBadRequest) Error() string
type GetDeviceStatusByCapabilityDefault ¶
type GetDeviceStatusByCapabilityDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDeviceStatusByCapabilityDefault handles this case with default header values.
Unexpected error
func NewGetDeviceStatusByCapabilityDefault ¶
func NewGetDeviceStatusByCapabilityDefault(code int) *GetDeviceStatusByCapabilityDefault
NewGetDeviceStatusByCapabilityDefault creates a GetDeviceStatusByCapabilityDefault with default headers values
func (*GetDeviceStatusByCapabilityDefault) Code ¶
func (o *GetDeviceStatusByCapabilityDefault) Code() int
Code gets the status code for the get device status by capability default response
func (*GetDeviceStatusByCapabilityDefault) Error ¶
func (o *GetDeviceStatusByCapabilityDefault) Error() string
type GetDeviceStatusByCapabilityForbidden ¶
type GetDeviceStatusByCapabilityForbidden struct { }
GetDeviceStatusByCapabilityForbidden handles this case with default header values.
Not authorized
func NewGetDeviceStatusByCapabilityForbidden ¶
func NewGetDeviceStatusByCapabilityForbidden() *GetDeviceStatusByCapabilityForbidden
NewGetDeviceStatusByCapabilityForbidden creates a GetDeviceStatusByCapabilityForbidden with default headers values
func (*GetDeviceStatusByCapabilityForbidden) Error ¶
func (o *GetDeviceStatusByCapabilityForbidden) Error() string
type GetDeviceStatusByCapabilityOK ¶
type GetDeviceStatusByCapabilityOK struct {
Payload models.CapabilityStatus
}
GetDeviceStatusByCapabilityOK handles this case with default header values.
Successful return of current status of the attributes of a device component's capability
func NewGetDeviceStatusByCapabilityOK ¶
func NewGetDeviceStatusByCapabilityOK() *GetDeviceStatusByCapabilityOK
NewGetDeviceStatusByCapabilityOK creates a GetDeviceStatusByCapabilityOK with default headers values
func (*GetDeviceStatusByCapabilityOK) Error ¶
func (o *GetDeviceStatusByCapabilityOK) Error() string
type GetDeviceStatusByCapabilityParams ¶
type GetDeviceStatusByCapabilityParams struct { /*Authorization OAuth token */ Authorization string /*CapabilityID*/ CapabilityID string /*ComponentID The name of the component. */ ComponentID string /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDeviceStatusByCapabilityParams contains all the parameters to send to the API endpoint for the get device status by capability operation typically these are written to a http.Request
func NewGetDeviceStatusByCapabilityParams ¶
func NewGetDeviceStatusByCapabilityParams() *GetDeviceStatusByCapabilityParams
NewGetDeviceStatusByCapabilityParams creates a new GetDeviceStatusByCapabilityParams object with the default values initialized.
func NewGetDeviceStatusByCapabilityParamsWithContext ¶
func NewGetDeviceStatusByCapabilityParamsWithContext(ctx context.Context) *GetDeviceStatusByCapabilityParams
NewGetDeviceStatusByCapabilityParamsWithContext creates a new GetDeviceStatusByCapabilityParams object with the default values initialized, and the ability to set a context for a request
func NewGetDeviceStatusByCapabilityParamsWithHTTPClient ¶
func NewGetDeviceStatusByCapabilityParamsWithHTTPClient(client *http.Client) *GetDeviceStatusByCapabilityParams
NewGetDeviceStatusByCapabilityParamsWithHTTPClient creates a new GetDeviceStatusByCapabilityParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDeviceStatusByCapabilityParamsWithTimeout ¶
func NewGetDeviceStatusByCapabilityParamsWithTimeout(timeout time.Duration) *GetDeviceStatusByCapabilityParams
NewGetDeviceStatusByCapabilityParamsWithTimeout creates a new GetDeviceStatusByCapabilityParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDeviceStatusByCapabilityParams) SetAuthorization ¶
func (o *GetDeviceStatusByCapabilityParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetCapabilityID ¶
func (o *GetDeviceStatusByCapabilityParams) SetCapabilityID(capabilityID string)
SetCapabilityID adds the capabilityId to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetComponentID ¶
func (o *GetDeviceStatusByCapabilityParams) SetComponentID(componentID string)
SetComponentID adds the componentId to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetContext ¶
func (o *GetDeviceStatusByCapabilityParams) SetContext(ctx context.Context)
SetContext adds the context to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetDeviceID ¶
func (o *GetDeviceStatusByCapabilityParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetHTTPClient ¶
func (o *GetDeviceStatusByCapabilityParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) SetTimeout ¶
func (o *GetDeviceStatusByCapabilityParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithAuthorization ¶
func (o *GetDeviceStatusByCapabilityParams) WithAuthorization(authorization string) *GetDeviceStatusByCapabilityParams
WithAuthorization adds the authorization to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithCapabilityID ¶
func (o *GetDeviceStatusByCapabilityParams) WithCapabilityID(capabilityID string) *GetDeviceStatusByCapabilityParams
WithCapabilityID adds the capabilityID to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithComponentID ¶
func (o *GetDeviceStatusByCapabilityParams) WithComponentID(componentID string) *GetDeviceStatusByCapabilityParams
WithComponentID adds the componentID to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithContext ¶
func (o *GetDeviceStatusByCapabilityParams) WithContext(ctx context.Context) *GetDeviceStatusByCapabilityParams
WithContext adds the context to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithDeviceID ¶
func (o *GetDeviceStatusByCapabilityParams) WithDeviceID(deviceID string) *GetDeviceStatusByCapabilityParams
WithDeviceID adds the deviceID to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithHTTPClient ¶
func (o *GetDeviceStatusByCapabilityParams) WithHTTPClient(client *http.Client) *GetDeviceStatusByCapabilityParams
WithHTTPClient adds the HTTPClient to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WithTimeout ¶
func (o *GetDeviceStatusByCapabilityParams) WithTimeout(timeout time.Duration) *GetDeviceStatusByCapabilityParams
WithTimeout adds the timeout to the get device status by capability params
func (*GetDeviceStatusByCapabilityParams) WriteToRequest ¶
func (o *GetDeviceStatusByCapabilityParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeviceStatusByCapabilityReader ¶
type GetDeviceStatusByCapabilityReader struct {
// contains filtered or unexported fields
}
GetDeviceStatusByCapabilityReader is a Reader for the GetDeviceStatusByCapability structure.
func (*GetDeviceStatusByCapabilityReader) ReadResponse ¶
func (o *GetDeviceStatusByCapabilityReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDeviceStatusByCapabilityTooManyRequests ¶
type GetDeviceStatusByCapabilityTooManyRequests struct {
Payload *models.ErrorResponse
}
GetDeviceStatusByCapabilityTooManyRequests handles this case with default header values.
Too many requests
func NewGetDeviceStatusByCapabilityTooManyRequests ¶
func NewGetDeviceStatusByCapabilityTooManyRequests() *GetDeviceStatusByCapabilityTooManyRequests
NewGetDeviceStatusByCapabilityTooManyRequests creates a GetDeviceStatusByCapabilityTooManyRequests with default headers values
func (*GetDeviceStatusByCapabilityTooManyRequests) Error ¶
func (o *GetDeviceStatusByCapabilityTooManyRequests) Error() string
type GetDeviceStatusByCapabilityUnauthorized ¶
type GetDeviceStatusByCapabilityUnauthorized struct { }
GetDeviceStatusByCapabilityUnauthorized handles this case with default header values.
Not authenticated
func NewGetDeviceStatusByCapabilityUnauthorized ¶
func NewGetDeviceStatusByCapabilityUnauthorized() *GetDeviceStatusByCapabilityUnauthorized
NewGetDeviceStatusByCapabilityUnauthorized creates a GetDeviceStatusByCapabilityUnauthorized with default headers values
func (*GetDeviceStatusByCapabilityUnauthorized) Error ¶
func (o *GetDeviceStatusByCapabilityUnauthorized) Error() string
type GetDeviceStatusDefault ¶
type GetDeviceStatusDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDeviceStatusDefault handles this case with default header values.
Unexpected error
func NewGetDeviceStatusDefault ¶
func NewGetDeviceStatusDefault(code int) *GetDeviceStatusDefault
NewGetDeviceStatusDefault creates a GetDeviceStatusDefault with default headers values
func (*GetDeviceStatusDefault) Code ¶
func (o *GetDeviceStatusDefault) Code() int
Code gets the status code for the get device status default response
func (*GetDeviceStatusDefault) Error ¶
func (o *GetDeviceStatusDefault) Error() string
type GetDeviceStatusForbidden ¶
type GetDeviceStatusForbidden struct { }
GetDeviceStatusForbidden handles this case with default header values.
Not authorized
func NewGetDeviceStatusForbidden ¶
func NewGetDeviceStatusForbidden() *GetDeviceStatusForbidden
NewGetDeviceStatusForbidden creates a GetDeviceStatusForbidden with default headers values
func (*GetDeviceStatusForbidden) Error ¶
func (o *GetDeviceStatusForbidden) Error() string
type GetDeviceStatusOK ¶
type GetDeviceStatusOK struct {
Payload *models.DeviceStatus
}
GetDeviceStatusOK handles this case with default header values.
successful return of current status of device attributes
func NewGetDeviceStatusOK ¶
func NewGetDeviceStatusOK() *GetDeviceStatusOK
NewGetDeviceStatusOK creates a GetDeviceStatusOK with default headers values
func (*GetDeviceStatusOK) Error ¶
func (o *GetDeviceStatusOK) Error() string
type GetDeviceStatusParams ¶
type GetDeviceStatusParams struct { /*Authorization OAuth token */ Authorization string /*DeviceID the device ID */ DeviceID string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDeviceStatusParams contains all the parameters to send to the API endpoint for the get device status operation typically these are written to a http.Request
func NewGetDeviceStatusParams ¶
func NewGetDeviceStatusParams() *GetDeviceStatusParams
NewGetDeviceStatusParams creates a new GetDeviceStatusParams object with the default values initialized.
func NewGetDeviceStatusParamsWithContext ¶
func NewGetDeviceStatusParamsWithContext(ctx context.Context) *GetDeviceStatusParams
NewGetDeviceStatusParamsWithContext creates a new GetDeviceStatusParams object with the default values initialized, and the ability to set a context for a request
func NewGetDeviceStatusParamsWithHTTPClient ¶
func NewGetDeviceStatusParamsWithHTTPClient(client *http.Client) *GetDeviceStatusParams
NewGetDeviceStatusParamsWithHTTPClient creates a new GetDeviceStatusParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDeviceStatusParamsWithTimeout ¶
func NewGetDeviceStatusParamsWithTimeout(timeout time.Duration) *GetDeviceStatusParams
NewGetDeviceStatusParamsWithTimeout creates a new GetDeviceStatusParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDeviceStatusParams) SetAuthorization ¶
func (o *GetDeviceStatusParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get device status params
func (*GetDeviceStatusParams) SetContext ¶
func (o *GetDeviceStatusParams) SetContext(ctx context.Context)
SetContext adds the context to the get device status params
func (*GetDeviceStatusParams) SetDeviceID ¶
func (o *GetDeviceStatusParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the get device status params
func (*GetDeviceStatusParams) SetHTTPClient ¶
func (o *GetDeviceStatusParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get device status params
func (*GetDeviceStatusParams) SetTimeout ¶
func (o *GetDeviceStatusParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get device status params
func (*GetDeviceStatusParams) WithAuthorization ¶
func (o *GetDeviceStatusParams) WithAuthorization(authorization string) *GetDeviceStatusParams
WithAuthorization adds the authorization to the get device status params
func (*GetDeviceStatusParams) WithContext ¶
func (o *GetDeviceStatusParams) WithContext(ctx context.Context) *GetDeviceStatusParams
WithContext adds the context to the get device status params
func (*GetDeviceStatusParams) WithDeviceID ¶
func (o *GetDeviceStatusParams) WithDeviceID(deviceID string) *GetDeviceStatusParams
WithDeviceID adds the deviceID to the get device status params
func (*GetDeviceStatusParams) WithHTTPClient ¶
func (o *GetDeviceStatusParams) WithHTTPClient(client *http.Client) *GetDeviceStatusParams
WithHTTPClient adds the HTTPClient to the get device status params
func (*GetDeviceStatusParams) WithTimeout ¶
func (o *GetDeviceStatusParams) WithTimeout(timeout time.Duration) *GetDeviceStatusParams
WithTimeout adds the timeout to the get device status params
func (*GetDeviceStatusParams) WriteToRequest ¶
func (o *GetDeviceStatusParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDeviceStatusReader ¶
type GetDeviceStatusReader struct {
// contains filtered or unexported fields
}
GetDeviceStatusReader is a Reader for the GetDeviceStatus structure.
func (*GetDeviceStatusReader) ReadResponse ¶
func (o *GetDeviceStatusReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDeviceStatusTooManyRequests ¶
type GetDeviceStatusTooManyRequests struct {
Payload *models.ErrorResponse
}
GetDeviceStatusTooManyRequests handles this case with default header values.
Too many requests
func NewGetDeviceStatusTooManyRequests ¶
func NewGetDeviceStatusTooManyRequests() *GetDeviceStatusTooManyRequests
NewGetDeviceStatusTooManyRequests creates a GetDeviceStatusTooManyRequests with default headers values
func (*GetDeviceStatusTooManyRequests) Error ¶
func (o *GetDeviceStatusTooManyRequests) Error() string
type GetDeviceStatusUnauthorized ¶
type GetDeviceStatusUnauthorized struct { }
GetDeviceStatusUnauthorized handles this case with default header values.
Not authenticated
func NewGetDeviceStatusUnauthorized ¶
func NewGetDeviceStatusUnauthorized() *GetDeviceStatusUnauthorized
NewGetDeviceStatusUnauthorized creates a GetDeviceStatusUnauthorized with default headers values
func (*GetDeviceStatusUnauthorized) Error ¶
func (o *GetDeviceStatusUnauthorized) Error() string
type GetDeviceTooManyRequests ¶
type GetDeviceTooManyRequests struct {
Payload *models.ErrorResponse
}
GetDeviceTooManyRequests handles this case with default header values.
Too many requests
func NewGetDeviceTooManyRequests ¶
func NewGetDeviceTooManyRequests() *GetDeviceTooManyRequests
NewGetDeviceTooManyRequests creates a GetDeviceTooManyRequests with default headers values
func (*GetDeviceTooManyRequests) Error ¶
func (o *GetDeviceTooManyRequests) Error() string
type GetDeviceUnauthorized ¶
type GetDeviceUnauthorized struct { }
GetDeviceUnauthorized handles this case with default header values.
Not authenticated
func NewGetDeviceUnauthorized ¶
func NewGetDeviceUnauthorized() *GetDeviceUnauthorized
NewGetDeviceUnauthorized creates a GetDeviceUnauthorized with default headers values
func (*GetDeviceUnauthorized) Error ¶
func (o *GetDeviceUnauthorized) Error() string
type GetDevicesBadRequest ¶
type GetDevicesBadRequest struct {
Payload *models.ErrorResponse
}
GetDevicesBadRequest handles this case with default header values.
Bad request
func NewGetDevicesBadRequest ¶
func NewGetDevicesBadRequest() *GetDevicesBadRequest
NewGetDevicesBadRequest creates a GetDevicesBadRequest with default headers values
func (*GetDevicesBadRequest) Error ¶
func (o *GetDevicesBadRequest) Error() string
type GetDevicesDefault ¶
type GetDevicesDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
GetDevicesDefault handles this case with default header values.
Unexpected error
func NewGetDevicesDefault ¶
func NewGetDevicesDefault(code int) *GetDevicesDefault
NewGetDevicesDefault creates a GetDevicesDefault with default headers values
func (*GetDevicesDefault) Code ¶
func (o *GetDevicesDefault) Code() int
Code gets the status code for the get devices default response
func (*GetDevicesDefault) Error ¶
func (o *GetDevicesDefault) Error() string
type GetDevicesForbidden ¶
type GetDevicesForbidden struct { }
GetDevicesForbidden handles this case with default header values.
Not authorized
func NewGetDevicesForbidden ¶
func NewGetDevicesForbidden() *GetDevicesForbidden
NewGetDevicesForbidden creates a GetDevicesForbidden with default headers values
func (*GetDevicesForbidden) Error ¶
func (o *GetDevicesForbidden) Error() string
type GetDevicesOK ¶
type GetDevicesOK struct {
Payload *models.PagedDevices
}
GetDevicesOK handles this case with default header values.
A list of devices.
func NewGetDevicesOK ¶
func NewGetDevicesOK() *GetDevicesOK
NewGetDevicesOK creates a GetDevicesOK with default headers values
func (*GetDevicesOK) Error ¶
func (o *GetDevicesOK) Error() string
type GetDevicesParams ¶
type GetDevicesParams struct { /*Authorization OAuth token */ Authorization string /*Capability The device capabilities to filter the results by. The capabilities are treated as an "and" so all capabilities must be present. */ Capability []string /*DeviceID The device ids to filter the results by. */ DeviceID []string /*LocationID The device locations to filter the results by. */ LocationID []string Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
GetDevicesParams contains all the parameters to send to the API endpoint for the get devices operation typically these are written to a http.Request
func NewGetDevicesParams ¶
func NewGetDevicesParams() *GetDevicesParams
NewGetDevicesParams creates a new GetDevicesParams object with the default values initialized.
func NewGetDevicesParamsWithContext ¶
func NewGetDevicesParamsWithContext(ctx context.Context) *GetDevicesParams
NewGetDevicesParamsWithContext creates a new GetDevicesParams object with the default values initialized, and the ability to set a context for a request
func NewGetDevicesParamsWithHTTPClient ¶
func NewGetDevicesParamsWithHTTPClient(client *http.Client) *GetDevicesParams
NewGetDevicesParamsWithHTTPClient creates a new GetDevicesParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewGetDevicesParamsWithTimeout ¶
func NewGetDevicesParamsWithTimeout(timeout time.Duration) *GetDevicesParams
NewGetDevicesParamsWithTimeout creates a new GetDevicesParams object with the default values initialized, and the ability to set a timeout on a request
func (*GetDevicesParams) SetAuthorization ¶
func (o *GetDevicesParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the get devices params
func (*GetDevicesParams) SetCapability ¶
func (o *GetDevicesParams) SetCapability(capability []string)
SetCapability adds the capability to the get devices params
func (*GetDevicesParams) SetContext ¶
func (o *GetDevicesParams) SetContext(ctx context.Context)
SetContext adds the context to the get devices params
func (*GetDevicesParams) SetDeviceID ¶
func (o *GetDevicesParams) SetDeviceID(deviceID []string)
SetDeviceID adds the deviceId to the get devices params
func (*GetDevicesParams) SetHTTPClient ¶
func (o *GetDevicesParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the get devices params
func (*GetDevicesParams) SetLocationID ¶
func (o *GetDevicesParams) SetLocationID(locationID []string)
SetLocationID adds the locationId to the get devices params
func (*GetDevicesParams) SetTimeout ¶
func (o *GetDevicesParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the get devices params
func (*GetDevicesParams) WithAuthorization ¶
func (o *GetDevicesParams) WithAuthorization(authorization string) *GetDevicesParams
WithAuthorization adds the authorization to the get devices params
func (*GetDevicesParams) WithCapability ¶
func (o *GetDevicesParams) WithCapability(capability []string) *GetDevicesParams
WithCapability adds the capability to the get devices params
func (*GetDevicesParams) WithContext ¶
func (o *GetDevicesParams) WithContext(ctx context.Context) *GetDevicesParams
WithContext adds the context to the get devices params
func (*GetDevicesParams) WithDeviceID ¶
func (o *GetDevicesParams) WithDeviceID(deviceID []string) *GetDevicesParams
WithDeviceID adds the deviceID to the get devices params
func (*GetDevicesParams) WithHTTPClient ¶
func (o *GetDevicesParams) WithHTTPClient(client *http.Client) *GetDevicesParams
WithHTTPClient adds the HTTPClient to the get devices params
func (*GetDevicesParams) WithLocationID ¶
func (o *GetDevicesParams) WithLocationID(locationID []string) *GetDevicesParams
WithLocationID adds the locationID to the get devices params
func (*GetDevicesParams) WithTimeout ¶
func (o *GetDevicesParams) WithTimeout(timeout time.Duration) *GetDevicesParams
WithTimeout adds the timeout to the get devices params
func (*GetDevicesParams) WriteToRequest ¶
func (o *GetDevicesParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type GetDevicesReader ¶
type GetDevicesReader struct {
// contains filtered or unexported fields
}
GetDevicesReader is a Reader for the GetDevices structure.
func (*GetDevicesReader) ReadResponse ¶
func (o *GetDevicesReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type GetDevicesTooManyRequests ¶
type GetDevicesTooManyRequests struct {
Payload *models.ErrorResponse
}
GetDevicesTooManyRequests handles this case with default header values.
Too many requests
func NewGetDevicesTooManyRequests ¶
func NewGetDevicesTooManyRequests() *GetDevicesTooManyRequests
NewGetDevicesTooManyRequests creates a GetDevicesTooManyRequests with default headers values
func (*GetDevicesTooManyRequests) Error ¶
func (o *GetDevicesTooManyRequests) Error() string
type GetDevicesUnauthorized ¶
type GetDevicesUnauthorized struct { }
GetDevicesUnauthorized handles this case with default header values.
Not authenticated
func NewGetDevicesUnauthorized ¶
func NewGetDevicesUnauthorized() *GetDevicesUnauthorized
NewGetDevicesUnauthorized creates a GetDevicesUnauthorized with default headers values
func (*GetDevicesUnauthorized) Error ¶
func (o *GetDevicesUnauthorized) Error() string
type InstallDeviceBadRequest ¶
type InstallDeviceBadRequest struct {
Payload *models.ErrorResponse
}
InstallDeviceBadRequest handles this case with default header values.
Bad request
func NewInstallDeviceBadRequest ¶
func NewInstallDeviceBadRequest() *InstallDeviceBadRequest
NewInstallDeviceBadRequest creates a InstallDeviceBadRequest with default headers values
func (*InstallDeviceBadRequest) Error ¶
func (o *InstallDeviceBadRequest) Error() string
type InstallDeviceDefault ¶
type InstallDeviceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
InstallDeviceDefault handles this case with default header values.
Unexpected error
func NewInstallDeviceDefault ¶
func NewInstallDeviceDefault(code int) *InstallDeviceDefault
NewInstallDeviceDefault creates a InstallDeviceDefault with default headers values
func (*InstallDeviceDefault) Code ¶
func (o *InstallDeviceDefault) Code() int
Code gets the status code for the install device default response
func (*InstallDeviceDefault) Error ¶
func (o *InstallDeviceDefault) Error() string
type InstallDeviceForbidden ¶
type InstallDeviceForbidden struct { }
InstallDeviceForbidden handles this case with default header values.
Not authorized
func NewInstallDeviceForbidden ¶
func NewInstallDeviceForbidden() *InstallDeviceForbidden
NewInstallDeviceForbidden creates a InstallDeviceForbidden with default headers values
func (*InstallDeviceForbidden) Error ¶
func (o *InstallDeviceForbidden) Error() string
type InstallDeviceOK ¶
InstallDeviceOK handles this case with default header values.
Device Installed.
func NewInstallDeviceOK ¶
func NewInstallDeviceOK() *InstallDeviceOK
NewInstallDeviceOK creates a InstallDeviceOK with default headers values
func (*InstallDeviceOK) Error ¶
func (o *InstallDeviceOK) Error() string
type InstallDeviceParams ¶
type InstallDeviceParams struct { /*Authorization OAuth token */ Authorization string /*InstallationRequest Installation Request */ InstallationRequest *models.DeviceInstallRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
InstallDeviceParams contains all the parameters to send to the API endpoint for the install device operation typically these are written to a http.Request
func NewInstallDeviceParams ¶
func NewInstallDeviceParams() *InstallDeviceParams
NewInstallDeviceParams creates a new InstallDeviceParams object with the default values initialized.
func NewInstallDeviceParamsWithContext ¶
func NewInstallDeviceParamsWithContext(ctx context.Context) *InstallDeviceParams
NewInstallDeviceParamsWithContext creates a new InstallDeviceParams object with the default values initialized, and the ability to set a context for a request
func NewInstallDeviceParamsWithHTTPClient ¶
func NewInstallDeviceParamsWithHTTPClient(client *http.Client) *InstallDeviceParams
NewInstallDeviceParamsWithHTTPClient creates a new InstallDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewInstallDeviceParamsWithTimeout ¶
func NewInstallDeviceParamsWithTimeout(timeout time.Duration) *InstallDeviceParams
NewInstallDeviceParamsWithTimeout creates a new InstallDeviceParams object with the default values initialized, and the ability to set a timeout on a request
func (*InstallDeviceParams) SetAuthorization ¶
func (o *InstallDeviceParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the install device params
func (*InstallDeviceParams) SetContext ¶
func (o *InstallDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the install device params
func (*InstallDeviceParams) SetHTTPClient ¶
func (o *InstallDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the install device params
func (*InstallDeviceParams) SetInstallationRequest ¶
func (o *InstallDeviceParams) SetInstallationRequest(installationRequest *models.DeviceInstallRequest)
SetInstallationRequest adds the installationRequest to the install device params
func (*InstallDeviceParams) SetTimeout ¶
func (o *InstallDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the install device params
func (*InstallDeviceParams) WithAuthorization ¶
func (o *InstallDeviceParams) WithAuthorization(authorization string) *InstallDeviceParams
WithAuthorization adds the authorization to the install device params
func (*InstallDeviceParams) WithContext ¶
func (o *InstallDeviceParams) WithContext(ctx context.Context) *InstallDeviceParams
WithContext adds the context to the install device params
func (*InstallDeviceParams) WithHTTPClient ¶
func (o *InstallDeviceParams) WithHTTPClient(client *http.Client) *InstallDeviceParams
WithHTTPClient adds the HTTPClient to the install device params
func (*InstallDeviceParams) WithInstallationRequest ¶
func (o *InstallDeviceParams) WithInstallationRequest(installationRequest *models.DeviceInstallRequest) *InstallDeviceParams
WithInstallationRequest adds the installationRequest to the install device params
func (*InstallDeviceParams) WithTimeout ¶
func (o *InstallDeviceParams) WithTimeout(timeout time.Duration) *InstallDeviceParams
WithTimeout adds the timeout to the install device params
func (*InstallDeviceParams) WriteToRequest ¶
func (o *InstallDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type InstallDeviceReader ¶
type InstallDeviceReader struct {
// contains filtered or unexported fields
}
InstallDeviceReader is a Reader for the InstallDevice structure.
func (*InstallDeviceReader) ReadResponse ¶
func (o *InstallDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type InstallDeviceTooManyRequests ¶
type InstallDeviceTooManyRequests struct {
Payload *models.ErrorResponse
}
InstallDeviceTooManyRequests handles this case with default header values.
Too many requests
func NewInstallDeviceTooManyRequests ¶
func NewInstallDeviceTooManyRequests() *InstallDeviceTooManyRequests
NewInstallDeviceTooManyRequests creates a InstallDeviceTooManyRequests with default headers values
func (*InstallDeviceTooManyRequests) Error ¶
func (o *InstallDeviceTooManyRequests) Error() string
type InstallDeviceUnauthorized ¶
type InstallDeviceUnauthorized struct { }
InstallDeviceUnauthorized handles this case with default header values.
Not authenticated
func NewInstallDeviceUnauthorized ¶
func NewInstallDeviceUnauthorized() *InstallDeviceUnauthorized
NewInstallDeviceUnauthorized creates a InstallDeviceUnauthorized with default headers values
func (*InstallDeviceUnauthorized) Error ¶
func (o *InstallDeviceUnauthorized) Error() string
type InstallDeviceUnprocessableEntity ¶
type InstallDeviceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
InstallDeviceUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewInstallDeviceUnprocessableEntity ¶
func NewInstallDeviceUnprocessableEntity() *InstallDeviceUnprocessableEntity
NewInstallDeviceUnprocessableEntity creates a InstallDeviceUnprocessableEntity with default headers values
func (*InstallDeviceUnprocessableEntity) Error ¶
func (o *InstallDeviceUnprocessableEntity) Error() string
type UpdateDeviceBadRequest ¶
type UpdateDeviceBadRequest struct {
Payload *models.ErrorResponse
}
UpdateDeviceBadRequest handles this case with default header values.
Bad request
func NewUpdateDeviceBadRequest ¶
func NewUpdateDeviceBadRequest() *UpdateDeviceBadRequest
NewUpdateDeviceBadRequest creates a UpdateDeviceBadRequest with default headers values
func (*UpdateDeviceBadRequest) Error ¶
func (o *UpdateDeviceBadRequest) Error() string
type UpdateDeviceDefault ¶
type UpdateDeviceDefault struct { Payload *models.ErrorResponse // contains filtered or unexported fields }
UpdateDeviceDefault handles this case with default header values.
Unexpected error
func NewUpdateDeviceDefault ¶
func NewUpdateDeviceDefault(code int) *UpdateDeviceDefault
NewUpdateDeviceDefault creates a UpdateDeviceDefault with default headers values
func (*UpdateDeviceDefault) Code ¶
func (o *UpdateDeviceDefault) Code() int
Code gets the status code for the update device default response
func (*UpdateDeviceDefault) Error ¶
func (o *UpdateDeviceDefault) Error() string
type UpdateDeviceForbidden ¶
type UpdateDeviceForbidden struct { }
UpdateDeviceForbidden handles this case with default header values.
Not authorized
func NewUpdateDeviceForbidden ¶
func NewUpdateDeviceForbidden() *UpdateDeviceForbidden
NewUpdateDeviceForbidden creates a UpdateDeviceForbidden with default headers values
func (*UpdateDeviceForbidden) Error ¶
func (o *UpdateDeviceForbidden) Error() string
type UpdateDeviceOK ¶
UpdateDeviceOK handles this case with default header values.
Updated Device.
func NewUpdateDeviceOK ¶
func NewUpdateDeviceOK() *UpdateDeviceOK
NewUpdateDeviceOK creates a UpdateDeviceOK with default headers values
func (*UpdateDeviceOK) Error ¶
func (o *UpdateDeviceOK) Error() string
type UpdateDeviceParams ¶
type UpdateDeviceParams struct { /*Authorization OAuth token */ Authorization string /*DeviceID the device ID */ DeviceID string /*UpdateDeviceRequest*/ UpdateDeviceRequest *models.UpdateDeviceRequest Context context.Context HTTPClient *http.Client // contains filtered or unexported fields }
UpdateDeviceParams contains all the parameters to send to the API endpoint for the update device operation typically these are written to a http.Request
func NewUpdateDeviceParams ¶
func NewUpdateDeviceParams() *UpdateDeviceParams
NewUpdateDeviceParams creates a new UpdateDeviceParams object with the default values initialized.
func NewUpdateDeviceParamsWithContext ¶
func NewUpdateDeviceParamsWithContext(ctx context.Context) *UpdateDeviceParams
NewUpdateDeviceParamsWithContext creates a new UpdateDeviceParams object with the default values initialized, and the ability to set a context for a request
func NewUpdateDeviceParamsWithHTTPClient ¶
func NewUpdateDeviceParamsWithHTTPClient(client *http.Client) *UpdateDeviceParams
NewUpdateDeviceParamsWithHTTPClient creates a new UpdateDeviceParams object with the default values initialized, and the ability to set a custom HTTPClient for a request
func NewUpdateDeviceParamsWithTimeout ¶
func NewUpdateDeviceParamsWithTimeout(timeout time.Duration) *UpdateDeviceParams
NewUpdateDeviceParamsWithTimeout creates a new UpdateDeviceParams object with the default values initialized, and the ability to set a timeout on a request
func (*UpdateDeviceParams) SetAuthorization ¶
func (o *UpdateDeviceParams) SetAuthorization(authorization string)
SetAuthorization adds the authorization to the update device params
func (*UpdateDeviceParams) SetContext ¶
func (o *UpdateDeviceParams) SetContext(ctx context.Context)
SetContext adds the context to the update device params
func (*UpdateDeviceParams) SetDeviceID ¶
func (o *UpdateDeviceParams) SetDeviceID(deviceID string)
SetDeviceID adds the deviceId to the update device params
func (*UpdateDeviceParams) SetHTTPClient ¶
func (o *UpdateDeviceParams) SetHTTPClient(client *http.Client)
SetHTTPClient adds the HTTPClient to the update device params
func (*UpdateDeviceParams) SetTimeout ¶
func (o *UpdateDeviceParams) SetTimeout(timeout time.Duration)
SetTimeout adds the timeout to the update device params
func (*UpdateDeviceParams) SetUpdateDeviceRequest ¶
func (o *UpdateDeviceParams) SetUpdateDeviceRequest(updateDeviceRequest *models.UpdateDeviceRequest)
SetUpdateDeviceRequest adds the updateDeviceRequest to the update device params
func (*UpdateDeviceParams) WithAuthorization ¶
func (o *UpdateDeviceParams) WithAuthorization(authorization string) *UpdateDeviceParams
WithAuthorization adds the authorization to the update device params
func (*UpdateDeviceParams) WithContext ¶
func (o *UpdateDeviceParams) WithContext(ctx context.Context) *UpdateDeviceParams
WithContext adds the context to the update device params
func (*UpdateDeviceParams) WithDeviceID ¶
func (o *UpdateDeviceParams) WithDeviceID(deviceID string) *UpdateDeviceParams
WithDeviceID adds the deviceID to the update device params
func (*UpdateDeviceParams) WithHTTPClient ¶
func (o *UpdateDeviceParams) WithHTTPClient(client *http.Client) *UpdateDeviceParams
WithHTTPClient adds the HTTPClient to the update device params
func (*UpdateDeviceParams) WithTimeout ¶
func (o *UpdateDeviceParams) WithTimeout(timeout time.Duration) *UpdateDeviceParams
WithTimeout adds the timeout to the update device params
func (*UpdateDeviceParams) WithUpdateDeviceRequest ¶
func (o *UpdateDeviceParams) WithUpdateDeviceRequest(updateDeviceRequest *models.UpdateDeviceRequest) *UpdateDeviceParams
WithUpdateDeviceRequest adds the updateDeviceRequest to the update device params
func (*UpdateDeviceParams) WriteToRequest ¶
func (o *UpdateDeviceParams) WriteToRequest(r runtime.ClientRequest, reg strfmt.Registry) error
WriteToRequest writes these params to a swagger request
type UpdateDeviceReader ¶
type UpdateDeviceReader struct {
// contains filtered or unexported fields
}
UpdateDeviceReader is a Reader for the UpdateDevice structure.
func (*UpdateDeviceReader) ReadResponse ¶
func (o *UpdateDeviceReader) ReadResponse(response runtime.ClientResponse, consumer runtime.Consumer) (interface{}, error)
ReadResponse reads a server response into the received o.
type UpdateDeviceTooManyRequests ¶
type UpdateDeviceTooManyRequests struct {
Payload *models.ErrorResponse
}
UpdateDeviceTooManyRequests handles this case with default header values.
Too many requests
func NewUpdateDeviceTooManyRequests ¶
func NewUpdateDeviceTooManyRequests() *UpdateDeviceTooManyRequests
NewUpdateDeviceTooManyRequests creates a UpdateDeviceTooManyRequests with default headers values
func (*UpdateDeviceTooManyRequests) Error ¶
func (o *UpdateDeviceTooManyRequests) Error() string
type UpdateDeviceUnauthorized ¶
type UpdateDeviceUnauthorized struct { }
UpdateDeviceUnauthorized handles this case with default header values.
Not authenticated
func NewUpdateDeviceUnauthorized ¶
func NewUpdateDeviceUnauthorized() *UpdateDeviceUnauthorized
NewUpdateDeviceUnauthorized creates a UpdateDeviceUnauthorized with default headers values
func (*UpdateDeviceUnauthorized) Error ¶
func (o *UpdateDeviceUnauthorized) Error() string
type UpdateDeviceUnprocessableEntity ¶
type UpdateDeviceUnprocessableEntity struct {
Payload *models.ErrorResponse
}
UpdateDeviceUnprocessableEntity handles this case with default header values.
Unprocessable Entity
func NewUpdateDeviceUnprocessableEntity ¶
func NewUpdateDeviceUnprocessableEntity() *UpdateDeviceUnprocessableEntity
NewUpdateDeviceUnprocessableEntity creates a UpdateDeviceUnprocessableEntity with default headers values
func (*UpdateDeviceUnprocessableEntity) Error ¶
func (o *UpdateDeviceUnprocessableEntity) Error() string
Source Files
¶
- create_device_events_parameters.go
- create_device_events_responses.go
- delete_device_parameters.go
- delete_device_responses.go
- devices_client.go
- execute_device_commands_parameters.go
- execute_device_commands_responses.go
- get_device_component_status_parameters.go
- get_device_component_status_responses.go
- get_device_parameters.go
- get_device_responses.go
- get_device_status_by_capability_parameters.go
- get_device_status_by_capability_responses.go
- get_device_status_parameters.go
- get_device_status_responses.go
- get_devices_parameters.go
- get_devices_responses.go
- install_device_parameters.go
- install_device_responses.go
- update_device_parameters.go
- update_device_responses.go