roboto.domain.devices.operations#

Module Contents#

class roboto.domain.devices.operations.CreateDeviceRequest(/, **data)#

Bases: pydantic.BaseModel

Request payload to create a new device.

This request is used to register a new device with the Roboto platform. The device will be associated with the specified organization and can subsequently be used for authentication and data operations.

Parameters:

data (Any)

device_id: str#

A user-provided identifier for a device, which is unique within that device’s org.

metadata: dict[str, Any] = None#

Key-value metadata pairs to associate with the device for discovery and search.

org_id: str | None = None#

The org to which this device belongs. If None, the device will be registered under the caller’s organization (if they belong to only one org) or an error will be raised if the caller belongs to multiple organizations.

tags: list[str] = None#

List of tags for device discovery and organization.

class roboto.domain.devices.operations.UpdateDeviceRequest(/, **data)#

Bases: pydantic.BaseModel

Request payload for updating device properties.

Used to modify device metadata and tags. Supports granular updates through metadata changesets that can add, update, or remove specific fields and tags without affecting other properties.

Parameters:

data (Any)

metadata_changeset: roboto.updates.MetadataChangeset | None = None#

Metadata changes to apply (add, update, or remove fields/tags).