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::*;

resource_api_client!(
    RegisteredDevicesApiClient,
    RegisteredDevicesIdApiClient,
    ResourceIdentity::RegisteredDevices
);

impl RegisteredDevicesApiClient {
    get!(
        doc: "Get registeredDevices from users",
        name: list_registered_devices,
        path: "/registeredDevices"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_registered_devices_count,
        path: "/registeredDevices/$count"
    );

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

impl RegisteredDevicesIdApiClient {
    get!(
        doc: "Get registeredDevices from users",
        name: get_registered_devices,
        path: "/registeredDevices/{{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: "/registeredDevices/{{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: "/registeredDevices/{{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: "/registeredDevices/{{RID}}/graph.endpoint"
    );
}