1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
// GENERATED CODE

use crate::api_default_imports::*;

api_client!(
    OwnedDevicesApiClient,
    OwnedDevicesIdApiClient,
    ResourceIdentity::OwnedDevices
);

impl OwnedDevicesApiClient {
    get!(
        doc: "Get ownedDevices from users",
        name: list_owned_devices,
        path: "/ownedDevices"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_owned_devices_count,
        path: "/ownedDevices/$count"
    );

    get!(
        doc: "Get the number of the resource",
        name: get_endpoint_count,
        path: "/ownedDevices/graph.endpoint/$count"
    );
}

impl OwnedDevicesIdApiClient {
    get!(
        doc: "Get ownedDevices from users",
        name: get_owned_devices,
        path: "/ownedDevices/{{RID}}"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.appRoleAssignment",
        name: get_directory_object_item_as_app_role_assignment_type,
        path: "/ownedDevices/{{RID}}/graph.appRoleAssignment"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.device",
        name: get_directory_object_item_as_device_type,
        path: "/ownedDevices/{{RID}}/graph.device"
    );
    get!(
        doc: "Get the item of type microsoft.graph.directoryObject as microsoft.graph.endpoint",
        name: get_directory_object_item_as_endpoint_type,
        path: "/ownedDevices/{{RID}}/graph.endpoint"
    );
}