[SDK reference](../../index.md) / [Models](../index.md)

# Models.Iot namespace

## Types

| Type | Kind | Description |
|---|---|---|
| [Device](Device.md) | class | A device: its identity, its desired and reported configuration (each under its own ETag), its operational certificate and itscounters (W60; ADR-0810 section 3). Telemetry arrives on `dev/{deviceId}/up/...`; commands leave on `dev/{deviceId}/down/...`. |
| [DeviceCommand](DeviceCommand.md) | class | A command queued on `dev/{deviceId}/down/commands/{name}`. |
| [DeviceCommandState](DeviceCommandState.md) | enum | The state of a downlink command. |
| [DeviceRegistry](DeviceRegistry.md) | class | A device registry: the tenant boundary of an MQTT namespace (W60; ADR-0810). Devices connect with mutual TLS only; the certificateCN `{registryUid}:{deviceId}` is the MQTT username, and pattern ACLs (`dev/%u/up/#` write, `dev/%u/down/#` read) isolate tenants.Prototype: built only with a paying design partner (ADR-0810). |
| [DeviceRegistryState](DeviceRegistryState.md) | enum | Device registry lifecycle states (W60; ADR-0810 section 3, ADR-0105). |
| [DeviceRegistry_annotations](DeviceRegistry_annotations.md) | class | At most 256 KiB in all; never policy input. |
| [DeviceRegistry_labels](DeviceRegistry_labels.md) | class | At most 64. |
| [DeviceRegistry_refusedByReasonCode](DeviceRegistry_refusedByReasonCode.md) | class | Messages refused, counted by the MQTT 5 reason code they got (`149` 0x95 payload too large, `150` 0x96 rate too high, `151` 0x97 quota exceeded, `135` 0x87 not authorized). |
| [DeviceRoute](DeviceRoute.md) | class | A route: messages whose topic (after `dev/{deviceId}/`) matches `topicFilter` are delivered to the target (W60; ADR-0810 section 3). |
| [DeviceRouteState](DeviceRouteState.md) | enum | Route lifecycle states. |
| [DeviceRoute_annotations](DeviceRoute_annotations.md) | class | At most 256 KiB in all; never policy input. |
| [DeviceRoute_labels](DeviceRoute_labels.md) | class | At most 64. |
| [DeviceState](DeviceState.md) | enum | Device lifecycle states. |
| [DeviceTelemetryMessage](DeviceTelemetryMessage.md) | class | One message the platform accepted from a device. |
| [Device_annotations](Device_annotations.md) | class | At most 256 KiB in all; never policy input. |
| [Device_desiredConfig](Device_desiredConfig.md) | class | The configuration the platform wants the device to run: string keys and values, at most 8 KiB in all. Change it with `:setDesiredConfig`. |
| [Device_labels](Device_labels.md) | class | At most 64. |
| [Device_reportedConfig](Device_reportedConfig.md) | class | The configuration the device last reported (`:reportConfig`). |
| [EnrollmentGroup](EnrollmentGroup.md) | class | An enrolment group: the certificate authority whose claim certificates may enrol devices into the registry (W60; ADR-0810 section 3).A device that presents a claim certificate chained to the group's CA, and a certificate request, buys an operational certificate. |
| [EnrollmentGroupState](EnrollmentGroupState.md) | enum | Enrolment group lifecycle states. |
| [EnrollmentGroup_annotations](EnrollmentGroup_annotations.md) | class | At most 256 KiB in all; never policy input. |
| [EnrollmentGroup_labels](EnrollmentGroup_labels.md) | class | At most 64. |
| [ProvisionDeviceRequest](ProvisionDeviceRequest.md) | class | Request to enrol a device with a claim certificate (W60; ADR-0810 section 3). |
| [ReportConfigRequest](ReportConfigRequest.md) | class | Request to report a device's configuration (what the device runs). |
| [ReportConfigRequest_config](ReportConfigRequest_config.md) | class | The configuration the device runs (string keys and values, at most 8 KiB in all). It replaces the last report. |
| [RouteTargetKind](RouteTargetKind.md) | enum | Where a route delivers (ADR-0810 section 3: queue, webhook, PostgreSQL table, bucket or metrics). |
| [SendDeviceCommandRequest](SendDeviceCommandRequest.md) | class | Request to send a command to a device. |
| [SetDesiredConfigRequest](SetDesiredConfigRequest.md) | class | Request to set a device's desired configuration. |
| [SetDesiredConfigRequest_config](SetDesiredConfigRequest_config.md) | class | The new desired configuration (string keys and values, at most 8 KiB in all). It replaces the old one. |
