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
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
use crate::api_default_imports::*;

resource_api_client!(DrivesItemsPathIdApiClient, ResourceIdentity::DrivesItems);

impl DrivesItemsPathIdApiClient {
    delete!(
        doc: "Delete navigation property items for drives",
        name: delete_items,
        path: "/root{{RID}}"
    );
    get!(
        doc: "Get items from drives",
        name: get_items,
        path: "/root{{RID}}"
    );
    patch!(
        doc: "Update the navigation property items in drives",
        name: update_items,
        path: "/root{{RID}}",
        body: true
    );
    delete!(
        doc: "Delete navigation property analytics for drives",
        name: delete_analytics,
        path: "/root{{RID}}/analytics"
    );
    get!(
        doc: "Get analytics from drives",
        name: get_analytics,
        path: "/root{{RID}}/analytics"
    );
    patch!(
        doc: "Update the navigation property analytics in drives",
        name: update_analytics,
        path: "/root{{RID}}/analytics",
        body: true
    );
    get!(
        doc: "Get itemAnalytics",
        name: get_all_time,
        path: "/root{{RID}}/analytics/allTime"
    );
    post!(
        doc: "Create new navigation property to itemActivityStats for drives",
        name: create_item_activity_stats,
        path: "/root{{RID}}/analytics/itemActivityStats",
        body: true
    );
    get!(
        doc: "Get itemActivityStats from drives",
        name: list_item_activity_stats,
        path: "/root{{RID}}/analytics/itemActivityStats"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_item_activity_stats_count,
        path: "/root{{RID}}/analytics/itemActivityStats/$count"
    );
    delete!(
        doc: "Delete navigation property itemActivityStats for drives",
        name: delete_item_activity_stats,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}",
        params: item_activity_stat_id
    );
    get!(
        doc: "Get itemActivityStats from drives",
        name: get_item_activity_stats,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}",
        params: item_activity_stat_id
    );
    patch!(
        doc: "Update the navigation property itemActivityStats in drives",
        name: update_item_activity_stats,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}",
        body: true,
        params: item_activity_stat_id
    );
    post!(
        doc: "Create new navigation property to activities for drives",
        name: create_activities,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities",
        body: true,
        params: item_activity_stat_id
    );
    get!(
        doc: "Get activities from drives",
        name: list_activities,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities",
        params: item_activity_stat_id
    );
    get!(
        doc: "Get the number of the resource",
        name: get_activities_count,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/$count",
        params: item_activity_stat_id
    );
    delete!(
        doc: "Delete navigation property activities for drives",
        name: delete_activities,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
        params: item_activity_stat_id, item_activity_id
    );
    get!(
        doc: "Get activities from drives",
        name: get_activities,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
        params: item_activity_stat_id, item_activity_id
    );
    patch!(
        doc: "Update the navigation property activities in drives",
        name: update_activities,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
        body: true,
        params: item_activity_stat_id, item_activity_id
    );
    get!(
        doc: "Get driveItem from drives",
        name: get_drive_item,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem",
        params: item_activity_stat_id, item_activity_id
    );
    get!(
        doc: "Get content for the navigation property driveItem from drives",
        name: get_drive_item_content,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem/content",
        params: item_activity_stat_id, item_activity_id
    );
    put!(
        doc: "Update content for the navigation property driveItem in drives",
        name: update_drive_item_content,
        path: "/root{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem/content",
        body: true,
        params: item_activity_stat_id, item_activity_id
    );
    get!(
        doc: "Get lastSevenDays from drives",
        name: get_last_seven_days,
        path: "/root{{RID}}/analytics/lastSevenDays"
    );
    post!(
        doc: "Invoke action checkin",
        name: checkin,
        path: "/root{{RID}}/checkin",
        body: true
    );
    post!(
        doc: "Invoke action checkout",
        name: checkout,
        path: "/root{{RID}}/checkout"
    );
    post!(
        doc: "Create new navigation property to children for drives",
        name: create_children,
        path: "/root{{RID}}/children",
        body: true
    );
    get!(
        doc: "List children of a driveItem",
        name: list_children,
        path: "/root{{RID}}/children"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_children_count,
        path: "/root{{RID}}/children/$count"
    );
    get!(
        doc: "Get children from drives",
        name: get_children,
        path: "/root{{RID}}/children/{{id}}",
        params: drive_item_id_1
    );
    get!(
        doc: "Get content for the navigation property children from drives",
        name: get_children_content,
        path: "/root{{RID}}/children/{{id}}/content",
        params: drive_item_id_1
    );
    put!(
        doc: "Update content for the navigation property children in drives",
        name: update_children_content,
        path: "/root{{RID}}/children/{{id}}/content",
        body: true,
        params: drive_item_id_1
    );
    get!(
        doc: "Get content for the navigation property items from drives",
        name: get_items_content,
        path: "/root{{RID}}/content"
    );
    put!(
        doc: "Update content for the navigation property items in drives",
        name: update_items_content,
        path: "/root{{RID}}/content",
        body: true
    );
    post!(
        doc: "Invoke action copy",
        name: copy,
        path: "/root{{RID}}/copy",
        body: true
    );
    post!(
        doc: "Invoke action createLink",
        name: create_link,
        path: "/root{{RID}}/createLink",
        body: true
    );
    post!(
        doc: "Invoke action createUploadSession",
        name: create_upload_session,
        path: "/root{{RID}}/createUploadSession",
        body: true
    );
    get!(
        doc: "Invoke function delta",
        name: get_drive_item_delta,
        path: "/root{{RID}}/delta()"
    );
    get!(
        doc: "Invoke function delta",
        name: get_drive_item_delta_token,
        path: "/root{{RID}}/delta(token='{{id}}')",
        params: token
    );
    post!(
        doc: "Invoke action follow",
        name: follow,
        path: "/root{{RID}}/follow"
    );
    get!(
        doc: "Invoke function getActivitiesByInterval",
        name: get_drive_item_activities_by_interval,
        path: "/root{{RID}}/getActivitiesByInterval(startDateTime='{{id}}',endDateTime='{{id2}}',interval='{{id3}}')",
        params: start_date_time, end_date_time, interval
    );
    post!(
        doc: "Invoke action invite",
        name: invite,
        path: "/root{{RID}}/invite",
        body: true
    );
    get!(
        doc: "Get listItem from drives",
        name: get_list_item,
        path: "/root{{RID}}/listItem"
    );
    post!(
        doc: "Create new navigation property to permissions for drives",
        name: create_permissions,
        path: "/root{{RID}}/permissions",
        body: true
    );
    get!(
        doc: "List sharing permissions on a driveItem",
        name: list_permissions,
        path: "/root{{RID}}/permissions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_permissions_count,
        path: "/root{{RID}}/permissions/$count"
    );
    delete!(
        doc: "Delete navigation property permissions for drives",
        name: delete_permissions,
        path: "/root{{RID}}/permissions/{{id}}",
        params: permission_id
    );
    get!(
        doc: "Get permissions from drives",
        name: get_permissions,
        path: "/root{{RID}}/permissions/{{id}}",
        params: permission_id
    );
    patch!(
        doc: "Update the navigation property permissions in drives",
        name: update_permissions,
        path: "/root{{RID}}/permissions/{{id}}",
        body: true,
        params: permission_id
    );
    post!(
        doc: "Invoke action grant",
        name: grant,
        path: "/root{{RID}}/permissions/{{id}}/grant",
        body: true,
        params: permission_id
    );
    post!(
        doc: "Invoke action preview",
        name: preview,
        path: "/root{{RID}}/preview",
        body: true
    );
    post!(
        doc: "Invoke action restore",
        name: restore,
        path: "/root{{RID}}/restore",
        body: true
    );
    get!(
        doc: "Invoke function search",
        name: search,
        path: "/root{{RID}}/search(q='{{id}}')",
        params: q
    );
    post!(
        doc: "Create new navigation property to subscriptions for drives",
        name: create_subscriptions,
        path: "/root{{RID}}/subscriptions",
        body: true
    );
    get!(
        doc: "Get subscriptions from drives",
        name: list_subscriptions,
        path: "/root{{RID}}/subscriptions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_subscriptions_count,
        path: "/root{{RID}}/subscriptions/$count"
    );
    delete!(
        doc: "Delete navigation property subscriptions for drives",
        name: delete_subscriptions,
        path: "/root{{RID}}/subscriptions/{{id}}",
        params: subscription_id
    );
    get!(
        doc: "Get subscriptions from drives",
        name: get_subscriptions,
        path: "/root{{RID}}/subscriptions/{{id}}",
        params: subscription_id
    );
    patch!(
        doc: "Update the navigation property subscriptions in drives",
        name: update_subscriptions,
        path: "/root{{RID}}/subscriptions/{{id}}",
        body: true,
        params: subscription_id
    );
    post!(
        doc: "Invoke action reauthorize",
        name: reauthorize,
        path: "/root{{RID}}/subscriptions/{{id}}/reauthorize",
        params: subscription_id
    );
    post!(
        doc: "Create new navigation property to thumbnails for drives",
        name: create_thumbnails,
        path: "/root{{RID}}/thumbnails",
        body: true
    );
    get!(
        doc: "List thumbnails for a DriveItem",
        name: list_thumbnails,
        path: "/root{{RID}}/thumbnails"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_thumbnails_count,
        path: "/root{{RID}}/thumbnails/$count"
    );
    delete!(
        doc: "Delete navigation property thumbnails for drives",
        name: delete_thumbnails,
        path: "/root{{RID}}/thumbnails/{{id}}",
        params: thumbnail_set_id
    );
    get!(
        doc: "Get thumbnails from drives",
        name: get_thumbnails,
        path: "/root{{RID}}/thumbnails/{{id}}",
        params: thumbnail_set_id
    );
    patch!(
        doc: "Update the navigation property thumbnails in drives",
        name: update_thumbnails,
        path: "/root{{RID}}/thumbnails/{{id}}",
        body: true,
        params: thumbnail_set_id
    );
    post!(
        doc: "Invoke action unfollow",
        name: unfollow,
        path: "/root{{RID}}/unfollow"
    );
    post!(
        doc: "Invoke action validatePermission",
        name: validate_permission,
        path: "/root{{RID}}/validatePermission",
        body: true
    );
    post!(
        doc: "Create new navigation property to versions for drives",
        name: create_versions,
        path: "/root{{RID}}/versions",
        body: true
    );
    get!(
        doc: "List versions of a driveItem",
        name: list_versions,
        path: "/root{{RID}}/versions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_versions_count,
        path: "/root{{RID}}/versions/$count"
    );
    delete!(
        doc: "Delete navigation property versions for drives",
        name: delete_versions,
        path: "/root{{RID}}/versions/{{id}}",
        params: drive_item_version_id
    );
    get!(
        doc: "Get versions from drives",
        name: get_versions,
        path: "/root{{RID}}/versions/{{id}}",
        params: drive_item_version_id
    );
    patch!(
        doc: "Update the navigation property versions in drives",
        name: update_versions,
        path: "/root{{RID}}/versions/{{id}}",
        body: true,
        params: drive_item_version_id
    );
    get!(
        doc: "Get content for the navigation property versions from drives",
        name: get_versions_content,
        path: "/root{{RID}}/versions/{{id}}/content",
        params: drive_item_version_id
    );
    put!(
        doc: "Update content for the navigation property versions in drives",
        name: update_versions_content,
        path: "/root{{RID}}/versions/{{id}}/content",
        body: true,
        params: drive_item_version_id
    );
    post!(
        doc: "Invoke action restoreVersion",
        name: restore_version,
        path: "/root{{RID}}/versions/{{id}}/restoreVersion",
        params: drive_item_version_id
    );
}