graph_rs_sdk/drives/drives_items/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::drives::*;
5
6api_client!(
7    DrivesItemsApiClient,
8    DrivesItemsIdApiClient,
9    ResourceIdentity::DrivesItems
10);
11
12impl DrivesItemsApiClient {
13    post!(
14        doc: "Create new navigation property to items for drives",
15        name: create_items,
16        path: "/items",
17        body: true
18    );
19    get!(
20        doc: "Get items from drives",
21        name: list_items,
22        path: "/items"
23    );
24    get!(
25        doc: "Get the number of the resource",
26        name: get_items_count,
27        path: "/items/$count"
28    );
29}
30
31impl DrivesItemsIdApiClient {
32    api_client_link!(created_by_user, CreatedByUserApiClient);
33    api_client_link_id!(worksheet, WorksheetsIdApiClient);
34    api_client_link!(worksheets, WorksheetsApiClient);
35    api_client_link!(last_modified_by_user, LastModifiedByUserApiClient);
36    api_client_link!(workbook, WorkbookApiClient);
37
38    delete!(
39        doc: "Delete a DriveItem",
40        name: delete_items,
41        path: "/items/{{RID}}"
42    );
43    get!(
44        doc: "Get items from drives",
45        name: get_items,
46        path: "/items/{{RID}}"
47    );
48    patch!(
49        doc: "Update DriveItem properties",
50        name: update_items,
51        path: "/items/{{RID}}",
52        body: true
53    );
54    delete!(
55        doc: "Delete navigation property analytics for drives",
56        name: delete_analytics,
57        path: "/items/{{RID}}/analytics"
58    );
59    get!(
60        doc: "Get analytics from drives",
61        name: get_analytics,
62        path: "/items/{{RID}}/analytics"
63    );
64    patch!(
65        doc: "Update the navigation property analytics in drives",
66        name: update_analytics,
67        path: "/items/{{RID}}/analytics",
68        body: true
69    );
70    get!(
71        doc: "Get itemAnalytics",
72        name: get_all_time,
73        path: "/items/{{RID}}/analytics/allTime"
74    );
75    post!(
76        doc: "Create new navigation property to itemActivityStats for drives",
77        name: create_item_activity_stats,
78        path: "/items/{{RID}}/analytics/itemActivityStats",
79        body: true
80    );
81    get!(
82        doc: "Get itemActivityStats from drives",
83        name: list_item_activity_stats,
84        path: "/items/{{RID}}/analytics/itemActivityStats"
85    );
86    get!(
87        doc: "Get the number of the resource",
88        name: get_item_activity_stats_count,
89        path: "/items/{{RID}}/analytics/itemActivityStats/$count"
90    );
91    delete!(
92        doc: "Delete navigation property itemActivityStats for drives",
93        name: delete_item_activity_stats,
94        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}",
95        params: item_activity_stat_id
96    );
97    get!(
98        doc: "Get itemActivityStats from drives",
99        name: get_item_activity_stats,
100        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}",
101        params: item_activity_stat_id
102    );
103    patch!(
104        doc: "Update the navigation property itemActivityStats in drives",
105        name: update_item_activity_stats,
106        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}",
107        body: true,
108        params: item_activity_stat_id
109    );
110    post!(
111        doc: "Create new navigation property to activities for drives",
112        name: create_activities,
113        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities",
114        body: true,
115        params: item_activity_stat_id
116    );
117    get!(
118        doc: "Get activities from drives",
119        name: list_activities,
120        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities",
121        params: item_activity_stat_id
122    );
123    get!(
124        doc: "Get the number of the resource",
125        name: get_activities_count,
126        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/$count",
127        params: item_activity_stat_id
128    );
129    delete!(
130        doc: "Delete navigation property activities for drives",
131        name: delete_activities,
132        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
133        params: item_activity_stat_id, item_activity_id
134    );
135    get!(
136        doc: "Get activities from drives",
137        name: get_activities,
138        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
139        params: item_activity_stat_id, item_activity_id
140    );
141    patch!(
142        doc: "Update the navigation property activities in drives",
143        name: update_activities,
144        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}",
145        body: true,
146        params: item_activity_stat_id, item_activity_id
147    );
148    get!(
149        doc: "Get driveItem from drives",
150        name: get_drive_item,
151        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem",
152        params: item_activity_stat_id, item_activity_id
153    );
154    get!(
155        doc: "Get content for the navigation property driveItem from drives",
156        name: get_drive_item_content,
157        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem/content",
158        params: item_activity_stat_id, item_activity_id
159    );
160    put!(
161        doc: "Update content for the navigation property driveItem in drives",
162        name: update_drive_item_content,
163        path: "/items/{{RID}}/analytics/itemActivityStats/{{id}}/activities/{{id2}}/driveItem/content",
164        body: true,
165        params: item_activity_stat_id, item_activity_id
166    );
167    get!(
168        doc: "Get lastSevenDays from drives",
169        name: get_last_seven_days,
170        path: "/items/{{RID}}/analytics/lastSevenDays"
171    );
172    post!(
173        doc: "Invoke action assignSensitivityLabel",
174        name: assign_sensitivity_label,
175        path: "/items/{{RID}}/assignSensitivityLabel",
176        body: true
177    );
178    post!(
179        doc: "Invoke action checkin",
180        name: checkin,
181        path: "/items/{{RID}}/checkin",
182        body: true
183    );
184    post!(
185        doc: "Invoke action checkout",
186        name: checkout,
187        path: "/items/{{RID}}/checkout"
188    );
189    post!(
190        doc: "Create new navigation property to children for drives",
191        name: create_children,
192        path: "/items/{{RID}}/children",
193        body: true
194    );
195    get!(
196        doc: "List children of a driveItem",
197        name: list_children,
198        path: "/items/{{RID}}/children"
199    );
200    get!(
201        doc: "Get the number of the resource",
202        name: get_children_count,
203        path: "/items/{{RID}}/children/$count"
204    );
205    get!(
206        doc: "Get children from drives",
207        name: get_children,
208        path: "/items/{{RID}}/children/{{id}}",
209        params: drive_item_id_1
210    );
211    get!(
212        doc: "Get content for the navigation property children from drives",
213        name: get_children_content,
214        path: "/items/{{RID}}/children/{{id}}/content",
215        params: drive_item_id_1
216    );
217    put!(
218        doc: "Update content for the navigation property children in drives",
219        name: update_children_content,
220        path: "/items/{{RID}}/children/{{id}}/content",
221        body: true,
222        params: drive_item_id_1
223    );
224    get!(
225        doc: "Get content for the navigation property items from drives",
226        name: get_items_content,
227        path: "/items/{{RID}}/content"
228    );
229    put!(
230        doc: "Update content for the navigation property items in drives",
231        name: update_items_content,
232        path: "/items/{{RID}}/content",
233        body: true
234    );
235    post!(
236        doc: "Invoke action copy",
237        name: copy,
238        path: "/items/{{RID}}/copy",
239        body: true
240    );
241    post!(
242        doc: "Invoke action createLink",
243        name: create_link,
244        path: "/items/{{RID}}/createLink",
245        body: true
246    );
247    post!(
248        doc: "Invoke action createUploadSession",
249        name: create_upload_session,
250        path: "/items/{{RID}}/createUploadSession",
251        body: true
252    );
253    get!(
254        doc: "Invoke function delta",
255        name: get_drive_item_delta,
256        path: "/items/{{RID}}/delta()"
257    );
258    get!(
259        doc: "Invoke function delta",
260        name: get_drive_item_delta_token,
261        path: "/items/{{RID}}/delta(token='{{id}}')",
262        params: token
263    );
264    post!(
265        doc: "Invoke action extractSensitivityLabels",
266        name: extract_sensitivity_labels,
267        path: "/items/{{RID}}/extractSensitivityLabels"
268    );
269    post!(
270        doc: "Invoke action follow",
271        name: follow,
272        path: "/items/{{RID}}/follow"
273    );
274    get!(
275        doc: "Invoke function getActivitiesByInterval",
276        name: get_drive_item_activities_by_interval,
277        path: "/items/{{RID}}/getActivitiesByInterval(startDateTime='{{id}}',endDateTime='{{id2}}',interval='{{id3}}')",
278        params: start_date_time, end_date_time, interval
279    );
280    post!(
281        doc: "Invoke action invite",
282        name: invite,
283        path: "/items/{{RID}}/invite",
284        body: true
285    );
286    get!(
287        doc: "Get listItem from drives",
288        name: get_list_item,
289        path: "/items/{{RID}}/listItem"
290    );
291    post!(
292        doc: "Invoke action permanentDelete",
293        name: permanent_delete,
294        path: "/items/{{RID}}/permanentDelete"
295    );
296    post!(
297        doc: "Create new navigation property to permissions for drives",
298        name: create_permissions,
299        path: "/items/{{RID}}/permissions",
300        body: true
301    );
302    get!(
303        doc: "List sharing permissions on a driveItem",
304        name: list_permissions,
305        path: "/items/{{RID}}/permissions"
306    );
307    get!(
308        doc: "Get the number of the resource",
309        name: get_permissions_count,
310        path: "/items/{{RID}}/permissions/$count"
311    );
312    delete!(
313        doc: "Delete a sharing permission from a file or folder",
314        name: delete_permissions,
315        path: "/items/{{RID}}/permissions/{{id}}",
316        params: permission_id
317    );
318    get!(
319        doc: "Get sharing permission for a file or folder",
320        name: get_permissions,
321        path: "/items/{{RID}}/permissions/{{id}}",
322        params: permission_id
323    );
324    patch!(
325        doc: "Update sharing permission",
326        name: update_permissions,
327        path: "/items/{{RID}}/permissions/{{id}}",
328        body: true,
329        params: permission_id
330    );
331    post!(
332        doc: "Invoke action grant",
333        name: grant,
334        path: "/items/{{RID}}/permissions/{{id}}/grant",
335        body: true,
336        params: permission_id
337    );
338    post!(
339        doc: "Invoke action preview",
340        name: preview,
341        path: "/items/{{RID}}/preview",
342        body: true
343    );
344    post!(
345        doc: "Invoke action restore",
346        name: restore,
347        path: "/items/{{RID}}/restore",
348        body: true
349    );
350    get!(
351        doc: "Get retentionLabel from drives",
352        name: get_retention_label,
353        path: "/items/{{RID}}/retentionLabel"
354    );
355    delete!(
356        doc: "driveItem: removeRetentionLabel",
357        name: delete_retention_label,
358        path: "/items/{{RID}}/retentionLabel"
359    );
360    patch!(
361        doc: "driveItem: setRetentionLabel",
362        name: update_retention_label,
363        path: "/items/{{RID}}/retentionLabel",
364        body: true
365    );
366    get!(
367        doc: "Invoke function search",
368        name: search,
369        path: "/items/{{RID}}/search(q='{{id}}')",
370        params: q
371    );
372    post!(
373        doc: "Create new navigation property to subscriptions for drives",
374        name: create_subscriptions,
375        path: "/items/{{RID}}/subscriptions",
376        body: true
377    );
378    get!(
379        doc: "Get subscriptions from drives",
380        name: list_subscriptions,
381        path: "/items/{{RID}}/subscriptions"
382    );
383    get!(
384        doc: "Get the number of the resource",
385        name: subscriptions,
386        path: "/items/{{RID}}/subscriptions/$count"
387    );
388    delete!(
389        doc: "Delete navigation property subscriptions for drives",
390        name: delete_subscriptions,
391        path: "/items/{{RID}}/subscriptions/{{id}}",
392        params: subscription_id
393    );
394    get!(
395        doc: "Get subscriptions from drives",
396        name: get_subscriptions,
397        path: "/items/{{RID}}/subscriptions/{{id}}",
398        params: subscription_id
399    );
400    patch!(
401        doc: "Update the navigation property subscriptions in drives",
402        name: update_subscriptions,
403        path: "/items/{{RID}}/subscriptions/{{id}}",
404        body: true,
405        params: subscription_id
406    );
407    post!(
408        doc: "Invoke action reauthorize",
409        name: reauthorize,
410        path: "/items/{{RID}}/subscriptions/{{id}}/reauthorize",
411        params: subscription_id
412    );
413    post!(
414        doc: "Create new navigation property to thumbnails for drives",
415        name: create_thumbnails,
416        path: "/items/{{RID}}/thumbnails",
417        body: true
418    );
419    get!(
420        doc: "List thumbnails for a DriveItem",
421        name: list_thumbnails,
422        path: "/items/{{RID}}/thumbnails"
423    );
424    get!(
425        doc: "Get the number of the resource",
426        name: get_thumbnails_count,
427        path: "/items/{{RID}}/thumbnails/$count"
428    );
429    delete!(
430        doc: "Delete navigation property thumbnails for drives",
431        name: delete_thumbnails,
432        path: "/items/{{RID}}/thumbnails/{{id}}",
433        params: thumbnail_set_id
434    );
435    get!(
436        doc: "Get thumbnails from drives",
437        name: get_thumbnails,
438        path: "/items/{{RID}}/thumbnails/{{id}}",
439        params: thumbnail_set_id
440    );
441    patch!(
442        doc: "Update the navigation property thumbnails in drives",
443        name: update_thumbnails,
444        path: "/items/{{RID}}/thumbnails/{{id}}",
445        body: true,
446        params: thumbnail_set_id
447    );
448    post!(
449        doc: "Invoke action unfollow",
450        name: unfollow,
451        path: "/items/{{RID}}/unfollow"
452    );
453    post!(
454        doc: "Invoke action validatePermission",
455        name: validate_permission,
456        path: "/items/{{RID}}/validatePermission",
457        body: true
458    );
459    post!(
460        doc: "Create new navigation property to versions for drives",
461        name: create_versions,
462        path: "/items/{{RID}}/versions",
463        body: true
464    );
465    get!(
466        doc: "List versions of a driveItem",
467        name: list_versions,
468        path: "/items/{{RID}}/versions"
469    );
470    get!(
471        doc: "Get the number of the resource",
472        name: get_versions_count,
473        path: "/items/{{RID}}/versions/$count"
474    );
475    delete!(
476        doc: "Delete navigation property versions for drives",
477        name: delete_versions,
478        path: "/items/{{RID}}/versions/{{id}}",
479        params: drive_item_version_id
480    );
481    get!(
482        doc: "Get a DriveItemVersion resource",
483        name: get_versions,
484        path: "/items/{{RID}}/versions/{{id}}",
485        params: drive_item_version_id
486    );
487    patch!(
488        doc: "Update the navigation property versions in drives",
489        name: update_versions,
490        path: "/items/{{RID}}/versions/{{id}}",
491        body: true,
492        params: drive_item_version_id
493    );
494    get!(
495        doc: "Get content for the navigation property versions from drives",
496        name: get_versions_content,
497        path: "/items/{{RID}}/versions/{{id}}/content",
498        params: drive_item_version_id
499    );
500    put!(
501        doc: "Update content for the navigation property versions in drives",
502        name: update_versions_content,
503        path: "/items/{{RID}}/versions/{{id}}/content",
504        body: true,
505        params: drive_item_version_id
506    );
507    post!(
508        doc: "Invoke action restoreVersion",
509        name: restore_version,
510        path: "/items/{{RID}}/versions/{{id}}/restoreVersion",
511        params: drive_item_version_id
512    );
513}