graph_rs_sdk/drives/
request.rs1use crate::api_default_imports::*;
4use crate::drives::*;
5
6api_client!(DrivesApiClient, DrivesIdApiClient, ResourceIdentity::Drives);
7
8impl DrivesApiClient {
9 post!(
10 doc: "Add new entity to drives",
11 name: create_drive,
12 path: "/drives",
13 body: true
14 );
15 get!(
16 doc: "Get entities from drives",
17 name: list_drive,
18 path: "/drives"
19 );
20}
21
22impl DrivesIdApiClient {
23 api_client_link_id!(item, DrivesItemsIdApiClient);
24 api_client_link_id!(item_by_path, DrivesItemsPathIdApiClient);
25 api_client_link!(worksheets, WorksheetsApiClient);
26 api_client_link!(created_by_user, CreatedByUserApiClient);
27 api_client_link_id!(worksheet, WorksheetsIdApiClient);
28 api_client_link!(items, DrivesItemsApiClient);
29 api_client_link!(list, DrivesListApiClient);
30 api_client_link!(workbook, WorkbookApiClient);
31 api_client_link!(last_modified_by_user, LastModifiedByUserApiClient);
32
33 delete!(
34 doc: "Delete entity from drives",
35 name: delete_drive,
36 path: "/drives/{{RID}}"
37 );
38 get!(
39 doc: "Get entity from drives by key",
40 name: get_drive,
41 path: "/drives/{{RID}}"
42 );
43 patch!(
44 doc: "Update entity in drives",
45 name: update_drive,
46 path: "/drives/{{RID}}",
47 body: true
48 );
49 post!(
50 doc: "Create new navigation property to bundles for drives",
51 name: create_bundles,
52 path: "/drives/{{RID}}/bundles",
53 body: true
54 );
55 get!(
56 doc: "Get bundles from drives",
57 name: list_bundles,
58 path: "/drives/{{RID}}/bundles"
59 );
60 get!(
61 doc: "Get the number of the resource",
62 name: get_bundles_count,
63 path: "/drives/{{RID}}/bundles/$count"
64 );
65 get!(
66 doc: "Get bundles from drives",
67 name: get_bundles,
68 path: "/drives/{{RID}}/bundles/{{id}}",
69 params: drive_item_id
70 );
71 get!(
72 doc: "Get content for the navigation property bundles from drives",
73 name: get_bundles_content,
74 path: "/drives/{{RID}}/bundles/{{id}}/content",
75 params: drive_item_id
76 );
77 put!(
78 doc: "Update content for the navigation property bundles in drives",
79 name: update_bundles_content,
80 path: "/drives/{{RID}}/bundles/{{id}}/content",
81 body: true,
82 params: drive_item_id
83 );
84 get!(
85 doc: "List followed items",
86 name: list_following,
87 path: "/drives/{{RID}}/following"
88 );
89 get!(
90 doc: "Get the number of the resource",
91 name: get_following_count,
92 path: "/drives/{{RID}}/following/$count"
93 );
94 get!(
95 doc: "Get following from drives",
96 name: get_following,
97 path: "/drives/{{RID}}/following/{{id}}",
98 params: drive_item_id
99 );
100 get!(
101 doc: "Get content for the navigation property following from drives",
102 name: get_following_content,
103 path: "/drives/{{RID}}/following/{{id}}/content",
104 params: drive_item_id
105 );
106 put!(
107 doc: "Update content for the navigation property following in drives",
108 name: update_following_content,
109 path: "/drives/{{RID}}/following/{{id}}/content",
110 body: true,
111 params: drive_item_id
112 );
113 get!(
114 doc: "Invoke function recent",
115 name: recent,
116 path: "/drives/{{RID}}/recent()"
117 );
118 get!(
119 doc: "Get a driveItem resource",
120 name: get_root,
121 path: "/drives/{{RID}}/root"
122 );
123 get!(
124 doc: "Get content for the navigation property root from drives",
125 name: get_root_content,
126 path: "/drives/{{RID}}/root/content"
127 );
128 put!(
129 doc: "Update content for the navigation property root in drives",
130 name: update_root_content,
131 path: "/drives/{{RID}}/root/content",
132 body: true
133 );
134 get!(
135 doc: "Invoke function search",
136 name: search,
137 path: "/drives/{{RID}}/search(q='{{id}}')",
138 params: q
139 );
140 get!(
141 doc: "Invoke function sharedWithMe",
142 name: shared_with_me,
143 path: "/drives/{{RID}}/sharedWithMe()"
144 );
145 get!(
146 doc: "Get a special folder by name",
147 name: list_special,
148 path: "/drives/{{RID}}/special"
149 );
150 get!(
151 doc: "Get the number of the resource",
152 name: get_special_count,
153 path: "/drives/{{RID}}/special/$count"
154 );
155 get!(
156 doc: "Get a special folder by name",
157 name: get_special,
158 path: "/drives/{{RID}}/special/{{id}}",
159 params: drive_item_id
160 );
161 get!(
162 doc: "Get content for the navigation property special from drives",
163 name: get_special_content,
164 path: "/drives/{{RID}}/special/{{id}}/content",
165 params: drive_item_id
166 );
167 put!(
168 doc: "Update content for the navigation property special in drives",
169 name: update_special_content,
170 path: "/drives/{{RID}}/special/{{id}}/content",
171 body: true,
172 params: drive_item_id
173 );
174}