graph_rs_sdk/groups/
request.rs

1// GENERATED CODE
2
3use crate::api_default_imports::*;
4use crate::group_lifecycle_policies::*;
5use crate::groups::*;
6use crate::permission_grants::*;
7use crate::planner::*;
8use crate::sites::*;
9use crate::users::*;
10
11api_client!(GroupsApiClient, GroupsIdApiClient, ResourceIdentity::Groups);
12
13impl GroupsApiClient {
14    post!(
15        doc: "Create group",
16        name: create_group,
17        path: "/groups",
18        body: true
19    );
20    get!(
21        doc: "List groups",
22        name: list_group,
23        path: "/groups"
24    );
25    get!(
26        doc: "Get the number of the resource",
27        name: get_groups_count,
28        path: "/groups/$count"
29    );
30    get!(
31        doc: "Invoke function delta",
32        name: delta,
33        path: "/groups/delta()"
34    );
35    post!(
36        doc: "Invoke action getAvailableExtensionProperties",
37        name: get_available_extension_properties,
38        path: "/groups/getAvailableExtensionProperties",
39        body: true
40    );
41    post!(
42        doc: "Invoke action getByIds",
43        name: get_by_ids,
44        path: "/groups/getByIds",
45        body: true
46    );
47    post!(
48        doc: "Invoke action validateProperties",
49        name: validate_properties,
50        path: "/groups/validateProperties",
51        body: true
52    );
53}
54
55impl GroupsIdApiClient {
56    api_client_link!(owners, GroupsOwnersApiClient);
57    api_client_link_id!(
58        members_with_license_errors_id,
59        MembersWithLicenseErrorsIdApiClient
60    );
61    api_client_link!(permission_grants, PermissionGrantsApiClient);
62    api_client_link_id!(owner, GroupsOwnersIdApiClient);
63    api_client_link!(transitive_members, TransitiveMembersApiClient);
64    api_client_link_id!(site, SitesIdApiClient);
65    api_client_link!(default_calendar, DefaultCalendarApiClient);
66    api_client_link_id!(calendar_view, CalendarViewIdApiClient);
67    api_client_link!(calendar_views, CalendarViewApiClient);
68    api_client_link!(planner, PlannerApiClient);
69    api_client_link!(member_of, MemberOfApiClient);
70    api_client_link!(conversations, ConversationsApiClient);
71    api_client_link_id!(event, EventsIdApiClient);
72    api_client_link!(sites, SitesApiClient);
73    api_client_link!(group_lifecycle_policies, GroupLifecyclePoliciesApiClient);
74    api_client_link!(events, EventsApiClient);
75    api_client_link!(groups_team, GroupsTeamApiClient);
76    api_client_link!(
77        members_with_license_errors,
78        MembersWithLicenseErrorsApiClient
79    );
80    api_client_link_id!(permission_grant, PermissionGrantsIdApiClient);
81    api_client_link_id!(member_of_id, MemberOfIdApiClient);
82    api_client_link!(onenote, OnenoteApiClient);
83    api_client_link_id!(thread, ThreadsIdApiClient);
84    api_client_link_id!(conversation, ConversationsIdApiClient);
85    api_client_link_id!(transitive_member, TransitiveMembersIdApiClient);
86    api_client_link!(threads, ThreadsApiClient);
87
88    delete!(
89        doc: "Delete group",
90        name: delete_group,
91        path: "/groups/{{RID}}"
92    );
93    get!(
94        doc: "Get group",
95        name: get_group,
96        path: "/groups/{{RID}}"
97    );
98    patch!(
99        doc: "Update group",
100        name: update_group,
101        path: "/groups/{{RID}}",
102        body: true
103    );
104    get!(
105        doc: "List acceptedSenders",
106        name: list_accepted_senders,
107        path: "/groups/{{RID}}/acceptedSenders"
108    );
109    get!(
110        doc: "Get the number of the resource",
111        name: get_accepted_senders_count,
112        path: "/groups/{{RID}}/acceptedSenders/$count"
113    );
114    post!(
115        doc: "Create new navigation property ref to acceptedSenders for groups",
116        name: create_ref_accepted_senders,
117        path: "/groups/{{RID}}/acceptedSenders/$ref",
118        body: true
119    );
120    get!(
121        doc: "List acceptedSenders",
122        name: list_ref_accepted_senders,
123        path: "/groups/{{RID}}/acceptedSenders/$ref"
124    );
125    delete!(
126        doc: "Delete ref of navigation property acceptedSenders for groups",
127        name: delete_ref_accepted_senders,
128        path: "/groups/{{RID}}/acceptedSenders/{{id}}/$ref",
129        params: directory_object_id
130    );
131    post!(
132        doc: "Invoke action addFavorite",
133        name: add_favorite,
134        path: "/groups/{{RID}}/addFavorite"
135    );
136    post!(
137        doc: "Invoke action assignLicense",
138        name: assign_license,
139        path: "/groups/{{RID}}/assignLicense",
140        body: true
141    );
142    post!(
143        doc: "Invoke action checkGrantedPermissionsForApp",
144        name: check_granted_permissions_for_app,
145        path: "/groups/{{RID}}/checkGrantedPermissionsForApp"
146    );
147    post!(
148        doc: "Invoke action checkMemberGroups",
149        name: check_member_groups,
150        path: "/groups/{{RID}}/checkMemberGroups",
151        body: true
152    );
153    post!(
154        doc: "Invoke action checkMemberObjects",
155        name: check_member_objects,
156        path: "/groups/{{RID}}/checkMemberObjects",
157        body: true
158    );
159    get!(
160        doc: "Get createdOnBehalfOf from groups",
161        name: get_created_on_behalf_of,
162        path: "/groups/{{RID}}/createdOnBehalfOf"
163    );
164    get!(
165        doc: "Get Drive",
166        name: get_drive,
167        path: "/groups/{{RID}}/drive"
168    );
169    get!(
170        doc: "List available drives",
171        name: list_drives,
172        path: "/groups/{{RID}}/drives"
173    );
174    get!(
175        doc: "Get the number of the resource",
176        name: get_drives_count,
177        path: "/groups/{{RID}}/drives/$count"
178    );
179    get!(
180        doc: "Get drives from groups",
181        name: get_drives,
182        path: "/groups/{{RID}}/drives/{{id}}",
183        params: drive_id
184    );
185    post!(
186        doc: "Invoke action getMemberGroups",
187        name: get_member_groups,
188        path: "/groups/{{RID}}/getMemberGroups",
189        body: true
190    );
191    post!(
192        doc: "Invoke action getMemberObjects",
193        name: get_member_objects,
194        path: "/groups/{{RID}}/getMemberObjects",
195        body: true
196    );
197    get!(
198        doc: "Get members from groups",
199        name: list_members,
200        path: "/groups/{{RID}}/members"
201    );
202    get!(
203        doc: "Get the number of the resource",
204        name: get_members_count,
205        path: "/groups/{{RID}}/members/$count"
206    );
207    post!(
208        doc: "Create new navigation property ref to members for groups",
209        name: create_ref_members,
210        path: "/groups/{{RID}}/members/$ref",
211        body: true
212    );
213    get!(
214        doc: "Get ref of members from groups",
215        name: list_ref_members,
216        path: "/groups/{{RID}}/members/$ref"
217    );
218    get!(
219        doc: "Get the items of type microsoft.graph.application in the microsoft.graph.directoryObject collection",
220        name: get_directory_object_items_as_application_type,
221        path: "/groups/{{RID}}/members/graph.application"
222    );
223    get!(
224        doc: "Get the number of the resource",
225        name: get_application_count,
226        path: "/groups/{{RID}}/members/graph.application/$count"
227    );
228    get!(
229        doc: "Get the items of type microsoft.graph.device in the microsoft.graph.directoryObject collection",
230        name: get_directory_object_items_as_device_type,
231        path: "/groups/{{RID}}/members/graph.device"
232    );
233    get!(
234        doc: "Get the number of the resource",
235        name: get_device_count,
236        path: "/groups/{{RID}}/members/graph.device/$count"
237    );
238    get!(
239        doc: "Get the items of type microsoft.graph.group in the microsoft.graph.directoryObject collection",
240        name: get_directory_object_items_as_group_type,
241        path: "/groups/{{RID}}/members/graph.group"
242    );
243    get!(
244        doc: "Get the number of the resource",
245        name: get_group_count,
246        path: "/groups/{{RID}}/members/graph.group/$count"
247    );
248    get!(
249        doc: "Get the items of type microsoft.graph.orgContact in the microsoft.graph.directoryObject collection",
250        name: get_directory_object_items_as_org_contact_type,
251        path: "/groups/{{RID}}/members/graph.orgContact"
252    );
253    get!(
254        doc: "Get the number of the resource",
255        name: get_org_contact_count,
256        path: "/groups/{{RID}}/members/graph.orgContact/$count"
257    );
258    get!(
259        doc: "Get the items of type microsoft.graph.servicePrincipal in the microsoft.graph.directoryObject collection",
260        name: get_directory_object_items_as_service_principal_type,
261        path: "/groups/{{RID}}/members/graph.servicePrincipal"
262    );
263    get!(
264        doc: "Get the number of the resource",
265        name: get_service_principal_count,
266        path: "/groups/{{RID}}/members/graph.servicePrincipal/$count"
267    );
268    get!(
269        doc: "Get the items of type microsoft.graph.user in the microsoft.graph.directoryObject collection",
270        name: get_directory_object_items_as_user_type,
271        path: "/groups/{{RID}}/members/graph.user"
272    );
273    get!(
274        doc: "Get the number of the resource",
275        name: get_user_count,
276        path: "/groups/{{RID}}/members/graph.user/$count"
277    );
278    delete!(
279        doc: "Delete ref of navigation property members for groups",
280        name: delete_ref_members,
281        path: "/groups/{{RID}}/members/{{id}}/$ref",
282        params: directory_object_id
283    );
284    get!(
285        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.application",
286        name: get_directory_object_item_as_application_type,
287        path: "/groups/{{RID}}/members/{{id}}/graph.application",
288        params: directory_object_id
289    );
290    get!(
291        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.device",
292        name: get_directory_object_item_as_device_type,
293        path: "/groups/{{RID}}/members/{{id}}/graph.device",
294        params: directory_object_id
295    );
296    get!(
297        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.group",
298        name: get_directory_object_item_as_group_type,
299        path: "/groups/{{RID}}/members/{{id}}/graph.group",
300        params: directory_object_id
301    );
302    get!(
303        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact",
304        name: get_directory_object_item_as_org_contact_type,
305        path: "/groups/{{RID}}/members/{{id}}/graph.orgContact",
306        params: directory_object_id
307    );
308    get!(
309        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.servicePrincipal",
310        name: get_directory_object_item_as_service_principal_type,
311        path: "/groups/{{RID}}/members/{{id}}/graph.servicePrincipal",
312        params: directory_object_id
313    );
314    get!(
315        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.user",
316        name: get_directory_object_item_as_user_type,
317        path: "/groups/{{RID}}/members/{{id}}/graph.user",
318        params: directory_object_id
319    );
320    get!(
321        doc: "Get photo from groups",
322        name: get_photo,
323        path: "/groups/{{RID}}/photo"
324    );
325    patch!(
326        doc: "Update the navigation property photo in groups",
327        name: update_photo,
328        path: "/groups/{{RID}}/photo",
329        body: true
330    );
331    get!(
332        doc: "Get media content for the navigation property photo from groups",
333        name: get_photo_content,
334        path: "/groups/{{RID}}/photo/$value"
335    );
336    put!(
337        doc: "Update media content for the navigation property photo in groups",
338        name: update_photo_content,
339        path: "/groups/{{RID}}/photo/$value",
340        body: true
341    );
342    get!(
343        doc: "List rejectedSenders",
344        name: list_rejected_senders,
345        path: "/groups/{{RID}}/rejectedSenders"
346    );
347    get!(
348        doc: "Get the number of the resource",
349        name: get_rejected_senders_count,
350        path: "/groups/{{RID}}/rejectedSenders/$count"
351    );
352    post!(
353        doc: "Create new navigation property ref to rejectedSenders for groups",
354        name: create_ref_rejected_senders,
355        path: "/groups/{{RID}}/rejectedSenders/$ref",
356        body: true
357    );
358    get!(
359        doc: "List rejectedSenders",
360        name: list_ref_rejected_senders,
361        path: "/groups/{{RID}}/rejectedSenders/$ref"
362    );
363    delete!(
364        doc: "Delete ref of navigation property rejectedSenders for groups",
365        name: delete_ref_rejected_senders,
366        path: "/groups/{{RID}}/rejectedSenders/{{id}}/$ref",
367        params: directory_object_id
368    );
369    post!(
370        doc: "Invoke action removeFavorite",
371        name: remove_favorite,
372        path: "/groups/{{RID}}/removeFavorite"
373    );
374    post!(
375        doc: "Invoke action renew",
376        name: renew,
377        path: "/groups/{{RID}}/renew"
378    );
379    post!(
380        doc: "Invoke action resetUnseenCount",
381        name: reset_unseen_count,
382        path: "/groups/{{RID}}/resetUnseenCount"
383    );
384    post!(
385        doc: "Invoke action restore",
386        name: restore,
387        path: "/groups/{{RID}}/restore"
388    );
389    post!(
390        doc: "Create settings",
391        name: create_settings,
392        path: "/groups/{{RID}}/settings",
393        body: true
394    );
395    get!(
396        doc: "List settings",
397        name: list_settings,
398        path: "/groups/{{RID}}/settings"
399    );
400    get!(
401        doc: "Get the number of the resource",
402        name: get_settings_count,
403        path: "/groups/{{RID}}/settings/$count"
404    );
405    delete!(
406        doc: "Delete navigation property settings for groups",
407        name: delete_settings,
408        path: "/groups/{{RID}}/settings/{{id}}",
409        params: group_setting_id
410    );
411    get!(
412        doc: "Get settings from groups",
413        name: get_settings,
414        path: "/groups/{{RID}}/settings/{{id}}",
415        params: group_setting_id
416    );
417    patch!(
418        doc: "Update the navigation property settings in groups",
419        name: update_settings,
420        path: "/groups/{{RID}}/settings/{{id}}",
421        body: true,
422        params: group_setting_id
423    );
424    post!(
425        doc: "Invoke action subscribeByMail",
426        name: subscribe_by_mail,
427        path: "/groups/{{RID}}/subscribeByMail"
428    );
429    post!(
430        doc: "Invoke action unsubscribeByMail",
431        name: unsubscribe_by_mail,
432        path: "/groups/{{RID}}/unsubscribeByMail"
433    );
434    post!(
435        doc: "Invoke action validateProperties",
436        name: validate_properties,
437        path: "/groups/{{RID}}/validateProperties",
438        body: true
439    );
440}