Module Values_0.PrincipalThingObjectSource

An object that represents the thing and the type of relation it has with the principal.

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

    The name of the thing.

    *)
  2. thingPrincipalType : ThingPrincipalType.t option;
    (*

    The type of the relation you want to specify when you attach a principal to a thing. The value defaults to NON_EXCLUSIVE_THING. EXCLUSIVE_THING - Attaches the specified principal to the specified thing, exclusively. The thing will be the only thing that’s attached to the principal. NON_EXCLUSIVE_THING - Attaches the specified principal to the specified thing. Multiple things can be attached to the principal.

    *)
}
Sourceval make : ?thingName:??? -> ?thingPrincipalType:??? -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Enum of string | `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