Module Values.AssetModelHierarchyDefinitionSource

Contains an asset model hierarchy used in asset model creation. An asset model hierarchy determines the kind (or type) of asset that can belong to a hierarchy.

Sourcetype nonrec t = {
  1. id : ID.t option;
    (*

    The ID to assign to the asset model hierarchy, if desired. IoT SiteWise automatically generates a unique ID for you, so this parameter is never required. However, if you prefer to supply your own ID instead, you can specify it here in UUID format. If you specify your own ID, it must be globally unique.

    *)
  2. externalId : ExternalId.t option;
    (*

    An external ID to assign to the asset model hierarchy. The external ID must be unique among asset model hierarchies within this asset model. For more information, see Using external IDs in the IoT SiteWise User Guide.

    *)
  3. name : Name.t;
    (*

    The name of the asset model hierarchy definition (as specified in the CreateAssetModel or UpdateAssetModel API operation).

    *)
  4. childAssetModelId : CustomID.t;
    (*

    The ID of an asset model for this hierarchy. This can be either the actual ID in UUID format, or else externalId: followed by the external ID, if it has one. For more information, see Referencing objects with external IDs in the IoT SiteWise User Guide.

    *)
}
Sourceval context_ : string
Sourceval make : ?id:??? -> ?externalId:??? -> name:Name.t -> childAssetModelId:CustomID.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `String of ID.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