Module Values.PutGeofenceRequestSource

Stores a geofence geometry in a given geofence collection, or updates the geometry of an existing geofence if a geofence ID is included in the request.

Sourcetype nonrec t = {
  1. collectionName : ResourceName.t;
    (*

    The geofence collection to store the geofence in.

    *)
  2. geofenceId : Id.t;
    (*

    An identifier for the geofence. For example, ExampleGeofence-1.

    *)
  3. geometry : GeofenceGeometry.t;
    (*

    Contains the details to specify the position of the geofence. Can be a circle, a polygon, or a multipolygon. Polygon and MultiPolygon geometries can be defined using their respective parameters, or encoded in Geobuf format using the Geobuf parameter. Including multiple geometry types in the same request will return a validation error. The geofence Polygon and MultiPolygon formats support a maximum of 1,000 total vertices. The Geobuf format supports a maximum of 100,000 vertices.

    *)
  4. geofenceProperties : PropertyMap.t option;
    (*

    Associates one of more properties with the geofence. A property is a key-value pair stored with the geofence and added to any geofence event triggered with that geofence. Format: "key" : "value"

    *)
}
Sourceval context_ : string
Sourceval make : ?geofenceProperties:??? -> collectionName:ResourceName.t -> geofenceId:Id.t -> geometry:GeofenceGeometry.t -> unit -> t
Sourceval to_value : t -> [> `Structure of (string * [> `Map of ([> `String of PropertyMapKeyString.t ] * [> `String of PropertyMapValueString.t ]) list | `String of ResourceName.t | `Structure of (string * [> `Blob of Base64EncodedGeobuf.t | `List of [> `List of [> `List of [> `Double of Double.t | `List of [> `Double of Double.t ] list ] list ] list ] list | `Structure of (string * [> `Double of SensitiveDouble.t | `List of [> `Double of Double.t ] list ]) list ]) list ]) 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