graph_rs_sdk/users/direct_reports/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 DirectReportsApiClient,
7 DirectReportsIdApiClient,
8 ResourceIdentity::DirectReports
9);
10
11impl DirectReportsApiClient {
12 get!(
13 doc: "Get directReports from users",
14 name: list_direct_reports,
15 path: "/directReports"
16 );
17 get!(
18 doc: "Get the number of the resource",
19 name: get_direct_reports_count,
20 path: "/directReports/$count"
21 );
22
23 get!(
24 doc: "Get the number of the resource",
25 name: get_user_count,
26 path: "/directReports/graph.user/$count"
27 );
28}
29
30impl DirectReportsIdApiClient {
31 get!(
32 doc: "Get directReports from users",
33 name: get_direct_reports,
34 path: "/directReports/{{RID}}"
35 );
36 get!(
37 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.orgContact",
38 name: get_directory_object_item_as_org_contact_type,
39 path: "/directReports/{{RID}}/graph.orgContact"
40 );
41 get!(
42 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.user",
43 name: get_directory_object_item_as_user_type,
44 path: "/directReports/{{RID}}/graph.user"
45 );
46}