Module Values.BatchGetWorkerResponseSource

Retrieves multiple workers in a single request. This is a batch version of the GetWorker API. The result of getting each worker is reported individually in the response. Because the batch request can result in a combination of successful and unsuccessful actions, you should check for batch errors even when the call returns an HTTP status code of 200.

Sourcetype nonrec t = {
  1. workers : BatchGetWorkerItems.t option;
    (*

    A list of workers that were successfully retrieved.

    *)
  2. errors : BatchGetWorkerErrors.t option;
    (*

    A list of errors for workers that could not be retrieved.

    *)
}
Sourcetype nonrec error = [
  1. | `AccessDeniedException of AccessDeniedException.t
  2. | `InternalServerErrorException of InternalServerErrorException.t
  3. | `ThrottlingException of ThrottlingException.t
  4. | `ValidationException of ValidationException.t
  5. | `Unknown_operation_error of string * string option
]
Sourceval make : ?workers:??? -> ?errors:??? -> unit -> t
Sourceval error_of_json : string -> Yojson.Safe.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerErrorException of InternalServerErrorException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_of_xml : string -> Awso.Xml.t -> [> `AccessDeniedException of AccessDeniedException.t | `InternalServerErrorException of InternalServerErrorException.t | `ThrottlingException of ThrottlingException.t | `Unknown_operation_error of string * string option | `ValidationException of ValidationException.t ]
Sourceval error_to_json : error -> Yojson.Safe.t
Sourceval to_value : t -> [> `Structure of (string * [> `List of [> `Structure of (string * [> `Enum of string | `String of FarmId.t | `Structure of (string * [> `Map of ([> `String of String_.t ] * [> `String of String_.t ]) list | `String of HostName.t | `Structure of (string * [> `List of [> `String of IpV4Address.t ] list ]) list ]) list | `Timestamp of CreatedAt.t ]) 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