Module Cosmos.Json_converter_t
type user
=
{
id : string;
rid : string;
ts : int;
self : string;
etag : string;
permissions : string;
}
type parameter
=
{
name : string;
value : string;
}
type query
=
{
query : string;
parameters : parameter list;
}
type partitionKey_result
=
{
paths : string list;
kind : string;
}
type list_users
=
{
rid : string;
users : user list;
count : int;
}
type database
=
{
id : string;
_rid : string;
_self : string;
_etag : string;
_colls : string;
_users : string;
_ts : int;
}
type list_databases
=
{
_rid : string;
databases : database list;
_count : int;
}
type indexes
=
{
dataType : string;
precision : int;
kind : string;
}
type included_paths
=
{
path : string;
indexes : indexes list;
}
type indexing_policy
=
{
automatic : bool;
indexing_mode : string;
included_paths : included_paths list;
}
type collection
=
{
id : string;
indexing_policy : indexing_policy;
partition_key : partitionKey_result option;
rid : string;
ts : int;
self : string;
etag : string;
docs : string;
sprocs : string;
triggers : string;
udfs : string;
conflicts : string;
}
type list_collections
=
{
rid : string;
document_collections : collection list;
count : int;
}
type create_user
=
{
id : string;
}
type create_partition_key
=
{
paths : string list;
kind : string;
version : int option;
}
type create_database
=
{
id : string;
}
type create_collection
=
{
id : string;
indexing_policy : indexing_policy option;
partition_key : create_partition_key option;
}