Module Values.AssociateEntityToThingRequestSource

Associates a device with a concrete thing that is in the user's registry. A thing can be associated with only one device at a time. If you associate a thing with a new device id, its previous association will be removed.

Sourcetype nonrec t = {
  1. thingName : ThingName.t;
    (*

    The name of the thing to which the entity is to be associated.

    *)
  2. entityId : Urn.t;
    (*

    The ID of the device to be associated with the thing. The ID should be in the following format. urn:tdm:REGION/ACCOUNT ID/default:device:DEVICENAME

    *)
  3. namespaceVersion : Version.t option;
    (*

    The version of the user's namespace. Defaults to the latest version of the user's namespace.

    *)
}
Sourceval context_ : string
Sourceval make : ?namespaceVersion:??? -> thingName:ThingName.t -> entityId:Urn.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Long of Version.t | `String of ThingName.t ]) list ]
Sourceval to_query : t -> Awso.Client.Query.t
Sourceval of_xml : Awso.Xml.t -> t
Sourceval of_string : string -> t
Sourceval of_json : Yojson.Safe.t -> t
Sourceval to_json : t -> Yojson.Safe.t