SDK reference / Models / Iot

DeviceRegistry

Kind: class

Namespace: Egulu.Sdk.Models.Iot

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).

Properties

NameTypeJSON nameDescription
AnnotationsModels.Iot.DeviceRegistry_annotations?annotationsAt most 256 KiB in all; never policy input.
Blockedbool?blockedTrue while the wallet cap blocks the registry.
BlockedReasonCodeint?blockedReasonCodeThe MQTT 5 reason code new connections get while the registry is blocked: 151 (0x97, Quota exceeded).
CreateTimeDateTimeOffset?createTimeThe createTime property
DeleteTimeDateTimeOffset?deleteTimeThe deleteTime property
Descriptionstring?descriptionHuman-readable description.
DeviceCountlong?deviceCountThe devices of the registry (not deleted).
DisplayNamestring?displayNameUp to 63 characters.
Endpointstring?endpointThe MQTT over WebSockets URL (through the HTTP edge) devices connect to, set when the registry is READY.
Etagstring?etag"{generation}"; send it back in If-Match.
LabelsModels.Iot.DeviceRegistry_labels?labelsAt most 64.
Locationstring?locationLocation ID where the registry is homed.
MaxMessageRatePerSecondint?maxMessageRatePerSecondThe most messages per second one device may publish (1..1000, default 10). Above it the message is refused with MQTT 5 reason code 0x96.
MaxPayloadBytesint?maxPayloadBytesThe largest payload of one message in bytes (256..65536, default 16384). Above it the message is refused with MQTT 5 reason code 0x95.
MessageCountlong?messageCountMessages accepted from the registry's devices.
MeteredUnitslong?meteredUnits4 KB metering units billed so far (a message of 1..4096 bytes is one unit, 4097..8192 two, and so on).
Namestring?nameThe resource name, for example projects/p/locations/l/instances/i.
PurgeTimeDateTimeOffset?purgeTimeThe purgeTime property
Reconcilingbool?reconcilingTrue while the platform works toward the spec.
RefusedByReasonCodeModels.Iot.DeviceRegistry_refusedByReasonCode?refusedByReasonCodeMessages 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).
StateModels.Iot.DeviceRegistryState?stateDevice registry lifecycle states (W60; ADR-0810 section 3, ADR-0105).
TopicPrefixstring?topicPrefixThe MQTT topic prefix: always `dev` (`dev/{deviceId}/up/#`, `dev/{deviceId}/down/#`).
Uidstring?uidUUIDv7, never reused.
UpdateTimeDateTimeOffset?updateTimeThe updateTime property