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
52
53
54
55
56
57
58
59
60
61
62
63
64
// GENERATED CODE

use crate::api_default_imports::*;

api_client!(
    WindowsAutopilotDeviceIdentitiesApiClient,
    WindowsAutopilotDeviceIdentitiesIdApiClient,
    ResourceIdentity::WindowsAutopilotDeviceIdentities
);

impl WindowsAutopilotDeviceIdentitiesApiClient {
    post!(
        doc: "Create new navigation property to windowsAutopilotDeviceIdentities for deviceManagement",
        name: create_windows_autopilot_device_identities,
        path: "/windowsAutopilotDeviceIdentities",
        body: true
    );
    get!(
        doc: "Get windowsAutopilotDeviceIdentities from deviceManagement",
        name: list_windows_autopilot_device_identities,
        path: "/windowsAutopilotDeviceIdentities"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_windows_autopilot_device_identities_count,
        path: "/windowsAutopilotDeviceIdentities/$count"
    );
}

impl WindowsAutopilotDeviceIdentitiesIdApiClient {
    delete!(
        doc: "Delete navigation property windowsAutopilotDeviceIdentities for deviceManagement",
        name: delete_windows_autopilot_device_identities,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}"
    );
    get!(
        doc: "Get windowsAutopilotDeviceIdentities from deviceManagement",
        name: get_windows_autopilot_device_identities,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property windowsAutopilotDeviceIdentities in deviceManagement",
        name: update_windows_autopilot_device_identities,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action assignUserToDevice",
        name: assign_user_to_device,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}/assignUserToDevice",
        body: true
    );
    post!(
        doc: "Invoke action unassignUserFromDevice",
        name: unassign_user_from_device,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}/unassignUserFromDevice"
    );
    post!(
        doc: "Invoke action updateDeviceProperties",
        name: update_device_properties,
        path: "/windowsAutopilotDeviceIdentities/{{RID}}/updateDeviceProperties",
        body: true
    );
}