Source file io.ml

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
(* generated by: awso-codegen generate-all --botocore-data vendor/botocore/botocore/data -o aws --runtime-dir lib/runtime/awso --cli-dir awso-cli *)
open Awso_mturk
open Awso_async
module Io = Http.Io
let eval ?endpoint_url ?cfg endpoint input =
  Io.bind (Io.resolve_cfg cfg)
    (fun cfg ->
       let meth = Endpoints.method_of_endpoint endpoint in
       let uri = Endpoints.uri_of_endpoint endpoint input in
       Io.map
         (Io.call ?endpoint_url ~cfg ~service:Values.service meth
            (Endpoints.to_request endpoint input) uri)
         (fun resp_result -> Endpoints.of_response endpoint resp_result))
let accept_qualification_request ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.AcceptQualificationRequest input
let approve_assignment ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ApproveAssignment input
let associate_qualification_with_worker ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.AssociateQualificationWithWorker input
let create_additional_assignments_for_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateAdditionalAssignmentsForHIT input
let create_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateHIT input
let create_h_i_t_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateHITType input
let create_h_i_t_with_h_i_t_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateHITWithHITType input
let create_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateQualificationType input
let create_worker_block ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.CreateWorkerBlock input
let delete_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteHIT input
let delete_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteQualificationType input
let delete_worker_block ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DeleteWorkerBlock input
let disassociate_qualification_from_worker ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.DisassociateQualificationFromWorker input
let get_account_balance ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetAccountBalance input
let get_assignment ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetAssignment input
let get_file_upload_u_r_l ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetFileUploadURL input
let get_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetHIT input
let get_qualification_score ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetQualificationScore input
let get_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.GetQualificationType input
let list_assignments_for_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListAssignmentsForHIT input
let list_bonus_payments ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListBonusPayments input
let list_h_i_ts ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListHITs input
let list_h_i_ts_for_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListHITsForQualificationType input
let list_qualification_requests ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListQualificationRequests input
let list_qualification_types ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListQualificationTypes input
let list_review_policy_results_for_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListReviewPolicyResultsForHIT input
let list_reviewable_h_i_ts ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListReviewableHITs input
let list_worker_blocks ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListWorkerBlocks input
let list_workers_with_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.ListWorkersWithQualificationType input
let notify_workers ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.NotifyWorkers input
let reject_assignment ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.RejectAssignment input
let reject_qualification_request ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.RejectQualificationRequest input
let send_bonus ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.SendBonus input
let send_test_event_notification ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.SendTestEventNotification input
let update_expiration_for_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateExpirationForHIT input
let update_h_i_t_review_status ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateHITReviewStatus input
let update_h_i_t_type_of_h_i_t ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateHITTypeOfHIT input
let update_notification_settings ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateNotificationSettings input
let update_qualification_type ?endpoint_url ?cfg input =
  eval ?endpoint_url ?cfg Endpoints.UpdateQualificationType input