1use crate::agreement_acceptances::*;
4use crate::api_default_imports::*;
5use crate::chats::*;
6use crate::default_drive::*;
7use crate::oauth2_permission_grants::*;
8use crate::planner::*;
9use crate::users::*;
10
11api_client!(UsersApiClient, UsersIdApiClient, ResourceIdentity::Users);
12
13impl UsersApiClient {
14 post!(
15 doc: "Create User",
16 name: create_user,
17 path: "/users",
18 body: true
19 );
20 get!(
21 doc: "List users",
22 name: list_user,
23 path: "/users"
24 );
25 get!(
26 doc: "Get the number of the resource",
27 name: get_users_count,
28 path: "/users/$count"
29 );
30 get!(
31 doc: "Invoke function delta",
32 name: delta,
33 path: "/users/delta()"
34 );
35 post!(
36 doc: "Invoke action getAvailableExtensionProperties",
37 name: get_available_extension_properties,
38 path: "/users/getAvailableExtensionProperties",
39 body: true
40 );
41 post!(
42 doc: "Invoke action getByIds",
43 name: get_by_ids,
44 path: "/users/getByIds",
45 body: true
46 );
47 post!(
48 doc: "Invoke action validateProperties",
49 name: validate_properties,
50 path: "/users/validateProperties",
51 body: true
52 );
53}
54
55impl UsersIdApiClient {
56 api_client_link!(calendar_views, CalendarViewApiClient);
57 api_client_link_id!(calendar_group, CalendarGroupsIdApiClient);
58 api_client_link!(oauth_2_permission_grants, Oauth2PermissionGrantsApiClient);
59 api_client_link_id!(owned_object, OwnedObjectsIdApiClient);
60 api_client_link_id!(registered_device, RegisteredDevicesIdApiClient);
61 api_client_link!(planner, PlannerApiClient);
62 api_client_link!(channels, ChannelsApiClient);
63 api_client_link_id!(chat, ChatsIdApiClient);
64 api_client_link!(outlook, OutlookApiClient);
65 api_client_link!(default_calendar, DefaultCalendarApiClient);
66 api_client_link!(contact_folders, ContactFoldersApiClient);
67 api_client_link_id!(mail_folder, MailFoldersIdApiClient);
68 api_client_link_id!(member_of_id, MemberOfIdApiClient);
69 api_client_link_id!(license_detail, LicenseDetailsIdApiClient);
70 api_client_link_id!(message, UsersMessagesIdApiClient);
71 api_client_link!(owned_objects, OwnedObjectsApiClient);
72 api_client_link!(extensions, ExtensionsApiClient);
73 api_client_link!(
74 device_management_troubleshooting_events,
75 DeviceManagementTroubleshootingEventsApiClient
76 );
77 api_client_link!(created_objects, CreatedObjectsApiClient);
78 api_client_link!(calendar_groups, CalendarGroupsApiClient);
79 api_client_link!(teamwork, TeamworkApiClient);
80 api_client_link!(agreement_acceptances, AgreementAcceptancesApiClient);
81 api_client_link!(authentication, AuthenticationApiClient);
82 api_client_link!(direct_reports, DirectReportsApiClient);
83 api_client_link_id!(event, EventsIdApiClient);
84 api_client_link!(chats, ChatsApiClient);
85 api_client_link!(scoped_role_member_of, ScopedRoleMemberOfApiClient);
86 api_client_link_id!(channel, ChannelsIdApiClient);
87 api_client_link_id!(transitive_member_of_id, TransitiveMemberOfIdApiClient);
88 api_client_link_id!(photo, PhotosIdApiClient);
89 api_client_link_id!(managed_app_registration, ManagedAppRegistrationsIdApiClient);
90 api_client_link_id!(extension, ExtensionsIdApiClient);
91 api_client_link!(transitive_member_of, TransitiveMemberOfApiClient);
92 api_client_link!(contacts, ContactsApiClient);
93 api_client_link!(insights, InsightsApiClient);
94 api_client_link!(events, EventsApiClient);
95 api_client_link!(online_meetings, OnlineMeetingsApiClient);
96 api_client_link!(member_of, MemberOfApiClient);
97 api_client_link!(followed_sites, FollowedSitesApiClient);
98 api_client_link!(joined_teams, JoinedTeamsApiClient);
99 api_client_link!(app_role_assignments, AppRoleAssignmentsApiClient);
100 api_client_link_id!(
101 device_management_troubleshooting_event,
102 DeviceManagementTroubleshootingEventsIdApiClient
103 );
104 api_client_link!(registered_devices, RegisteredDevicesApiClient);
105 api_client_link!(owned_devices, OwnedDevicesApiClient);
106 api_client_link_id!(scoped_role_member_of_id, ScopedRoleMemberOfIdApiClient);
107 api_client_link!(activities, ActivitiesApiClient);
108 api_client_link_id!(oauth_2_permission_grant, Oauth2PermissionGrantsIdApiClient);
109 api_client_link_id!(app_role_assignment, AppRoleAssignmentsIdApiClient);
110 api_client_link!(mail_folders, MailFoldersApiClient);
111 api_client_link_id!(calendar, CalendarsIdApiClient);
112 api_client_link!(managed_devices, ManagedDevicesApiClient);
113 api_client_link!(photos, PhotosApiClient);
114 api_client_link!(presence, PresenceApiClient);
115 api_client_link_id!(owned_device, OwnedDevicesIdApiClient);
116 api_client_link_id!(calendar_view, CalendarViewIdApiClient);
117 api_client_link_id!(created_object, CreatedObjectsIdApiClient);
118 api_client_link_id!(contact_folder, ContactFoldersIdApiClient);
119 api_client_link_id!(contact, ContactsIdApiClient);
120 api_client_link_id!(online_meeting, OnlineMeetingsIdApiClient);
121 api_client_link_id!(activity, ActivitiesIdApiClient);
122 api_client_link!(inference_classification, InferenceClassificationApiClient);
123 api_client_link_id!(joined_team, JoinedTeamsIdApiClient);
124 api_client_link_id!(direct_report, DirectReportsIdApiClient);
125 api_client_link_id!(managed_device, ManagedDevicesIdApiClient);
126 api_client_link!(license_details, LicenseDetailsApiClient);
127 api_client_link!(calendars, CalendarsApiClient);
128 api_client_link!(messages, UsersMessagesApiClient);
129 api_client_link!(managed_app_registrations, ManagedAppRegistrationsApiClient);
130 api_client_link_id!(agreement_acceptance, AgreementAcceptancesIdApiClient);
131 api_client_link!(todo, TodoApiClient);
132 api_client_link!(settings, SettingsApiClient);
133 api_client_link!(drive, DefaultDriveApiClient);
134 api_client_link!(onenote, OnenoteApiClient);
135 api_client_link!(mailbox_settings, MailboxSettingsApiClient);
136
137 delete!(
138 doc: "Delete a user",
139 name: delete_user,
140 path: "/users/{{RID}}"
141 );
142 get!(
143 doc: "Get user",
144 name: get_user,
145 path: "/users/{{RID}}"
146 );
147 patch!(
148 doc: "Update user",
149 name: update_user,
150 path: "/users/{{RID}}",
151 body: true
152 );
153 get!(
154 doc: "List agreementAcceptances",
155 name: list_agreement_acceptances,
156 path: "/users/{{RID}}/agreementAcceptances"
157 );
158 get!(
159 doc: "Get the number of the resource",
160 name: get_agreement_acceptances_count,
161 path: "/users/{{RID}}/agreementAcceptances/$count"
162 );
163 get!(
164 doc: "Get agreementAcceptances from users",
165 name: get_agreement_acceptances,
166 path: "/users/{{RID}}/agreementAcceptances/{{id}}",
167 params: agreement_acceptance_id
168 );
169 post!(
170 doc: "Invoke action assignLicense",
171 name: assign_license,
172 path: "/users/{{RID}}/assignLicense",
173 body: true
174 );
175 post!(
176 doc: "Invoke action changePassword",
177 name: change_password,
178 path: "/users/{{RID}}/changePassword",
179 body: true
180 );
181 post!(
182 doc: "Invoke action checkMemberGroups",
183 name: check_member_groups,
184 path: "/users/{{RID}}/checkMemberGroups",
185 body: true
186 );
187 post!(
188 doc: "Invoke action checkMemberObjects",
189 name: check_member_objects,
190 path: "/users/{{RID}}/checkMemberObjects",
191 body: true
192 );
193 get!(
194 doc: "Get Drive",
195 name: get_drive,
196 path: "/users/{{RID}}/drive"
197 );
198 get!(
199 doc: "List available drives",
200 name: list_drives,
201 path: "/users/{{RID}}/drives"
202 );
203 get!(
204 doc: "Get the number of the resource",
205 name: get_drives_count,
206 path: "/users/{{RID}}/drives/$count"
207 );
208 get!(
209 doc: "Get drives from users",
210 name: get_drives,
211 path: "/users/{{RID}}/drives/{{id}}",
212 params: drive_id
213 );
214 get!(
215 doc: "Invoke function exportDeviceAndAppManagementData",
216 name: user,
217 path: "/users/{{RID}}/exportDeviceAndAppManagementData()"
218 );
219 get!(
220 doc: "Invoke function exportDeviceAndAppManagementData",
221 name: export_device_app_management,
222 path: "/users/{{RID}}/exportDeviceAndAppManagementData(skip={{id}},top={{id2}})",
223 params: skip, top
224 );
225 post!(
226 doc: "Invoke action exportPersonalData",
227 name: export_personal_data,
228 path: "/users/{{RID}}/exportPersonalData",
229 body: true
230 );
231 post!(
232 doc: "Invoke action findMeetingTimes",
233 name: find_meeting_times,
234 path: "/users/{{RID}}/findMeetingTimes",
235 body: true
236 );
237 post!(
238 doc: "Invoke action getMailTips",
239 name: get_mail_tips,
240 path: "/users/{{RID}}/getMailTips",
241 body: true
242 );
243 get!(
244 doc: "Invoke function getManagedAppDiagnosticStatuses",
245 name: get_managed_app_diagnostic_statuses,
246 path: "/users/{{RID}}/getManagedAppDiagnosticStatuses()"
247 );
248 get!(
249 doc: "Invoke function getManagedAppPolicies",
250 name: get_managed_app_policies,
251 path: "/users/{{RID}}/getManagedAppPolicies()"
252 );
253 get!(
254 doc: "Invoke function getManagedDevicesWithAppFailures",
255 name: get_managed_devices_with_app_failures,
256 path: "/users/{{RID}}/getManagedDevicesWithAppFailures()"
257 );
258 post!(
259 doc: "Invoke action getMemberGroups",
260 name: get_member_groups,
261 path: "/users/{{RID}}/getMemberGroups",
262 body: true
263 );
264 post!(
265 doc: "Invoke action getMemberObjects",
266 name: get_member_objects,
267 path: "/users/{{RID}}/getMemberObjects",
268 body: true
269 );
270 get!(
271 doc: "List manager",
272 name: get_manager,
273 path: "/users/{{RID}}/manager"
274 );
275 delete!(
276 doc: "Delete ref of navigation property manager for users",
277 name: delete_ref_manager,
278 path: "/users/{{RID}}/manager/$ref"
279 );
280 get!(
281 doc: "List manager",
282 name: get_ref_manager,
283 path: "/users/{{RID}}/manager/$ref"
284 );
285 put!(
286 doc: "Update the ref of navigation property manager in users",
287 name: update_ref_manager,
288 path: "/users/{{RID}}/manager/$ref",
289 body: true
290 );
291 get!(
292 doc: "List people",
293 name: list_people,
294 path: "/users/{{RID}}/people"
295 );
296 get!(
297 doc: "Get the number of the resource",
298 name: get_people_count,
299 path: "/users/{{RID}}/people/$count"
300 );
301 get!(
302 doc: "Get people from users",
303 name: get_people,
304 path: "/users/{{RID}}/people/{{id}}",
305 params: person_id
306 );
307 get!(
308 doc: "Get photo from users",
309 name: get_photo,
310 path: "/users/{{RID}}/photo"
311 );
312 patch!(
313 doc: "Update the navigation property photo in users",
314 name: update_photo,
315 path: "/users/{{RID}}/photo",
316 body: true
317 );
318 get!(
319 doc: "Get media content for the navigation property photo from users",
320 name: get_photo_content,
321 path: "/users/{{RID}}/photo/$value"
322 );
323 put!(
324 doc: "Update media content for the navigation property photo in users",
325 name: update_photo_content,
326 path: "/users/{{RID}}/photo/$value",
327 body: true
328 );
329 delete!(
330 doc: "Delete navigation property planner for users",
331 name: delete_planner,
332 path: "/users/{{RID}}/planner"
333 );
334 get!(
335 doc: "Get planner from users",
336 name: get_planner,
337 path: "/users/{{RID}}/planner"
338 );
339 patch!(
340 doc: "Update the navigation property planner in users",
341 name: update_planner,
342 path: "/users/{{RID}}/planner",
343 body: true
344 );
345 post!(
346 doc: "Create new navigation property to plans for users",
347 name: create_plans,
348 path: "/users/{{RID}}/planner/plans",
349 body: true
350 );
351 get!(
352 doc: "List plans",
353 name: list_plans,
354 path: "/users/{{RID}}/planner/plans"
355 );
356 get!(
357 doc: "Get the number of the resource",
358 name: get_plans_count,
359 path: "/users/{{RID}}/planner/plans/$count"
360 );
361 delete!(
362 doc: "Delete navigation property plans for users",
363 name: delete_plans,
364 path: "/users/{{RID}}/planner/plans/{{id}}",
365 params: planner_plan_id
366 );
367 get!(
368 doc: "Get plans from users",
369 name: get_plans,
370 path: "/users/{{RID}}/planner/plans/{{id}}",
371 params: planner_plan_id
372 );
373 patch!(
374 doc: "Update the navigation property plans in users",
375 name: update_plans,
376 path: "/users/{{RID}}/planner/plans/{{id}}",
377 body: true,
378 params: planner_plan_id
379 );
380 delete!(
381 doc: "Delete navigation property details for users",
382 name: delete_details,
383 path: "/users/{{RID}}/planner/plans/{{id}}/details",
384 params: planner_plan_id
385 );
386 get!(
387 doc: "Get plannerPlanDetails",
388 name: get_details,
389 path: "/users/{{RID}}/planner/plans/{{id}}/details",
390 params: planner_plan_id
391 );
392 patch!(
393 doc: "Update the navigation property details in users",
394 name: update_details,
395 path: "/users/{{RID}}/planner/plans/{{id}}/details",
396 body: true,
397 params: planner_plan_id
398 );
399 get!(
400 doc: "Invoke function reminderView",
401 name: reminder_view,
402 path: "/users/{{RID}}/reminderView(StartDateTime='{{id}}',EndDateTime='{{id2}}')",
403 params: start_date_time, end_date_time
404 );
405 post!(
406 doc: "Invoke action removeAllDevicesFromManagement",
407 name: remove_all_devices_from_management,
408 path: "/users/{{RID}}/removeAllDevicesFromManagement"
409 );
410 post!(
411 doc: "Invoke action reprocessLicenseAssignment",
412 name: reprocess_license_assignment,
413 path: "/users/{{RID}}/reprocessLicenseAssignment"
414 );
415 post!(
416 doc: "Invoke action restore",
417 name: restore,
418 path: "/users/{{RID}}/restore"
419 );
420 post!(
421 doc: "Invoke action revokeSignInSessions",
422 name: revoke_sign_in_sessions,
423 path: "/users/{{RID}}/revokeSignInSessions"
424 );
425 post!(
426 doc: "Invoke action sendMail",
427 name: send_mail,
428 path: "/users/{{RID}}/sendMail",
429 body: true
430 );
431 delete!(
432 doc: "Delete navigation property settings for users",
433 name: delete_settings,
434 path: "/users/{{RID}}/settings"
435 );
436 get!(
437 doc: "Get settings from users",
438 name: get_settings,
439 path: "/users/{{RID}}/settings"
440 );
441 patch!(
442 doc: "Update the navigation property settings in users",
443 name: update_settings,
444 path: "/users/{{RID}}/settings",
445 body: true
446 );
447 delete!(
448 doc: "Delete navigation property shiftPreferences for users",
449 name: delete_shift_preferences,
450 path: "/users/{{RID}}/settings/shiftPreferences"
451 );
452 get!(
453 doc: "Get shiftPreferences",
454 name: get_shift_preferences,
455 path: "/users/{{RID}}/settings/shiftPreferences"
456 );
457 patch!(
458 doc: "Update shiftPreferences",
459 name: update_shift_preferences,
460 path: "/users/{{RID}}/settings/shiftPreferences",
461 body: true
462 );
463 post!(
464 doc: "Invoke action translateExchangeIds",
465 name: translate_exchange_ids,
466 path: "/users/{{RID}}/translateExchangeIds",
467 body: true
468 );
469 post!(
470 doc: "Invoke action wipeManagedAppRegistrationsByDeviceTag",
471 name: wipe_managed_app_registrations_by_device_tag,
472 path: "/users/{{RID}}/wipeManagedAppRegistrationsByDeviceTag",
473 body: true
474 );
475}