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
91
92
93
94
95
96
97
98
99
100
open Awso_workdocs
open Awso_sync
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 abort_document_version_upload ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AbortDocumentVersionUpload input
let activate_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.ActivateUser input
let add_resource_permissions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.AddResourcePermissions input
let ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateComment input
let create_custom_metadata ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateCustomMetadata input
let create_folder ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateFolder input
let create_labels ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateLabels input
let create_notification_subscription ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateNotificationSubscription input
let create_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.CreateUser input
let deactivate_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeactivateUser input
let ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteComment input
let delete_custom_metadata ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteCustomMetadata input
let delete_document ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteDocument input
let delete_document_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteDocumentVersion input
let delete_folder ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteFolder input
let delete_folder_contents ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteFolderContents input
let delete_labels ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteLabels input
let delete_notification_subscription ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteNotificationSubscription input
let delete_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DeleteUser input
let describe_activities ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeActivities input
let ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeComments input
let describe_document_versions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeDocumentVersions input
let describe_folder_contents ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeFolderContents input
let describe_groups ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeGroups input
let describe_notification_subscriptions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeNotificationSubscriptions input
let describe_resource_permissions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeResourcePermissions input
let describe_root_folders ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeRootFolders input
let describe_users ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.DescribeUsers input
let get_current_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetCurrentUser input
let get_document ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetDocument input
let get_document_path ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetDocumentPath input
let get_document_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetDocumentVersion input
let get_folder ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFolder input
let get_folder_path ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetFolderPath input
let get_resources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.GetResources input
let initiate_document_version_upload ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.InitiateDocumentVersionUpload input
let remove_all_resource_permissions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RemoveAllResourcePermissions input
let remove_resource_permission ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RemoveResourcePermission input
let restore_document_versions ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.RestoreDocumentVersions input
let search_resources ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.SearchResources input
let update_document ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateDocument input
let update_document_version ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateDocumentVersion input
let update_folder ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateFolder input
let update_user ?endpoint_url ?cfg input =
eval ?endpoint_url ?cfg Endpoints.UpdateUser input