Database.Offermodule Throughput : sig ... endval list :
?timeout:float ->
unit ->
(int * Cosmos.Json_converter_t.list_offers, cosmos_error) Stdlib.result Lwt.tlist () returns all throughput offers in the account. Requires master-key authentication.
val get :
?timeout:float ->
string ->
(int * Cosmos.Json_converter_t.offer, cosmos_error) Stdlib.result Lwt.tget offer_rid returns the offer identified by offer_rid. Requires master-key authentication.
val query :
?max_item_count:int ->
?continuation:string ->
?timeout:float ->
Cosmos.Json_converter_t.query ->
(int * Response_headers.t * Cosmos.Json_converter_t.list_offers,
cosmos_error)
Stdlib.result
Lwt.tval replace :
?migrate:[ `To_autoscale | `To_manual ] ->
?timeout:float ->
Cosmos.Json_converter_t.offer ->
Throughput.t ->
(int * Cosmos.Json_converter_t.offer, cosmos_error) Stdlib.result Lwt.tval get_for_collection :
?timeout:float ->
string ->
string ->
(int * Cosmos.Json_converter_t.offer option, cosmos_error) Stdlib.result
Lwt.tval get_for_database :
?timeout:float ->
string ->
(int * Cosmos.Json_converter_t.offer option, cosmos_error) Stdlib.result
Lwt.tval get_throughput :
?timeout:float ->
string ->
string ->
(int * Throughput.t option, cosmos_error) Stdlib.result Lwt.tget_throughput dbname coll_name returns the collection's provisioned throughput, or None for serverless accounts. Requires master-key authentication.
val set_throughput :
?migrate:[ `To_autoscale | `To_manual ] ->
?timeout:float ->
string ->
string ->
Throughput.t ->
(int * Cosmos.Json_converter_t.offer, cosmos_error) Stdlib.result Lwt.tset_throughput dbname coll_name throughput changes the collection's provisioned throughput. Requires master-key authentication and is unavailable for serverless accounts.