graph_rs_sdk/users/owned_devices/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 OwnedDevicesApiClient,
7 OwnedDevicesIdApiClient,
8 ResourceIdentity::OwnedDevices
9);
10
11impl OwnedDevicesApiClient {
12 get!(
13 doc: "Get ownedDevices from users",
14 name: list_owned_devices,
15 path: "/ownedDevices"
16 );
17 get!(
18 doc: "Get the number of the resource",
19 name: get_owned_devices_count,
20 path: "/ownedDevices/$count"
21 );
22
23 get!(
24 doc: "Get the number of the resource",
25 name: get_endpoint_count,
26 path: "/ownedDevices/graph.endpoint/$count"
27 );
28}
29
30impl OwnedDevicesIdApiClient {
31 get!(
32 doc: "Get ownedDevices from users",
33 name: get_owned_devices,
34 path: "/ownedDevices/{{RID}}"
35 );
36 get!(
37 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment",
38 name: get_directory_object_item_as_app_role_assignment_type,
39 path: "/ownedDevices/{{RID}}/graph.appRoleAssignment"
40 );
41 get!(
42 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.device",
43 name: get_directory_object_item_as_device_type,
44 path: "/ownedDevices/{{RID}}/graph.device"
45 );
46 get!(
47 doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint",
48 name: get_directory_object_item_as_endpoint_type,
49 path: "/ownedDevices/{{RID}}/graph.endpoint"
50 );
51}