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
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
use crate::api_default_imports::*;
use crate::default_drive::*;
use crate::drives::*;

resource_api_client!(DefaultDriveApiClient, ResourceIdentity::Drive);

impl DefaultDriveApiClient {
    get!(
       doc: "# Get drive",
       name: get_drive,
       path: "/drive"
    );
    patch!(
        doc: "# Update drive",
        name: update_drive,
        path: "/drive",
        body: true
    );
    get!(
        doc: "Get bundles from drives",
        name: list_bundles,
        path: "/drive/bundles"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_bundles_count,
        path: "/drive/bundles/$count"
    );
    get!(
        doc: "Get bundles from drives",
        name: get_bundles,
        path: "/drive/bundles/{{id}}",
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property bundles from drives",
        name: get_bundles_content,
        path: "/drive/bundles/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property bundles in drives",
        name: update_bundles_content,
        path: "/drive/bundles/{{id}}/content",
        body: true,
        params: drive_item_id
    );
    get!(
       doc: "# Get following from drive",
       name: list_following,
       path: "/drive/following"
    );
    post!(
       doc: "# Create new navigation property to following for drive",
       name: create_following,
       path: "/drive/following",
       body: true
    );
    get!(
        doc: "Get the number of the resource",
        name: get_following_count,
        path: "/drives/{{RID}}/following/$count"
    );
    get!(
        doc: "Get following from drive",
        name: get_following,
        path: "/drive/following/{{id}}",
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property following from drive",
        name: get_following_content,
        path: "/drive/following/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property following in drive",
        name: update_following_content,
        path: "/drive/following/{{id}}/content",
        body: true,
        params: drive_item_id
    );
    get!(
        name: list_root_children,
        path: "/drive/root/children"
    );
    get!(
       name: list_root_activities,
       path: "/drive/activities"
    );
    get!(
       doc: "# Get list from drive",
       name: get_list,
       path: "/drive/list",
       body: false
    );
    patch!(
       doc: "# Update the navigation property list in drive",
       name: update_list,
       path: "/drive/list",
       body: true
    );
    get!(
        doc: "# Invoke function recent",
        name: recent,
        path: "/drive/recent()"
    );
    get!(
        doc: "# Get root from drive",
        name: get_root,
        path: "/drive/root"
    );
    patch!(
        doc: "# Update the navigation property root in drive",
        name: update_root,
        path: "/drive/root"
    );
    get!(
        doc: "# Invoke function sharedWithMe",
        name: shared_with_me,
        path: "/drive/sharedWithMe()"
    );
    get!(
        doc: "# Get special from drive",
        name: list_special,
        path: "/drive/special"
    );
    post!(
        doc: "# Create new navigation property to special for drive",
        name: create_special,
        path: "/drive/special",
        body: true
    );
    get!(
        doc: "# Get special from drive",
        name: get_special,
        path: "/drive/special/{{id}}",
        params: drive_item_id
    );
    patch!(
        doc: "# Update the navigation property special in drive",
        name: update_special,
        path: "/drive/special/{{id}}",
        body: true,
        params: drive_item_id
    );
    get!(
        doc: "Get content for the navigation property special from drive",
        name: get_special_content,
        path: "/drive/special/{{id}}/content",
        params: drive_item_id
    );
    put!(
        doc: "Update content for the navigation property special in drive",
        name: update_special_content,
        path: "/drive/special/{{id}}/content",
        body: true,
        params: drive_item_id
    );
    get!(
       name: root_delta,
       path: "/drive/root/delta"
    );
    get!(
        doc: "Invoke function search",
        name: search,
        path: "/drive/search(q='{{id}}')",
        params: q
    );
    get!(
        doc: "Get content for the navigation property root from drives",
        name: get_root_content,
        path: "/drive/root/content"
    );
    put!(
        doc: "Update content for the navigation property root in drives",
        name: update_root_content,
        path: "/drive/root/content",
        body: true
    );
    post!(
        doc: "Create drive item in root of drive",
        name: create_root_folder,
        path: "/drive/root/children",
        body: true
    );

    api_client_link!(items, DrivesItemsApiClient);
    api_client_link_id!(item, DrivesItemsIdApiClient);
    api_client_link_id!(item_by_path, DefaultDrivesItemsPathIdApiClient);
    api_client_link!(lists, DrivesListApiClient);
}