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
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(
    DeviceManagementManagedDevicesApiClient,
    DeviceManagementManagedDevicesIdApiClient,
    ResourceIdentity::DeviceManagementManagedDevices
);

impl DeviceManagementManagedDevicesApiClient {
    post!(
        doc: "Create new navigation property to managedDevices for deviceManagement",
        name: create_managed_devices,
        path: "/managedDevices",
        body: true
    );
    get!(
        doc: "Get managedDevices from deviceManagement",
        name: list_managed_devices,
        path: "/managedDevices"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_managed_devices_count,
        path: "/managedDevices/$count"
    );
}

impl DeviceManagementManagedDevicesIdApiClient {
    delete!(
        doc: "Delete navigation property managedDevices for deviceManagement",
        name: delete_managed_devices,
        path: "/managedDevices/{{RID}}"
    );
    get!(
        doc: "Get managedDevices from deviceManagement",
        name: get_managed_devices,
        path: "/managedDevices/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property managedDevices in deviceManagement",
        name: update_managed_devices,
        path: "/managedDevices/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action bypassActivationLock",
        name: bypass_activation_lock,
        path: "/managedDevices/{{RID}}/bypassActivationLock"
    );
    post!(
        doc: "Invoke action cleanWindowsDevice",
        name: clean_windows_device,
        path: "/managedDevices/{{RID}}/cleanWindowsDevice",
        body: true
    );
    post!(
        doc: "Invoke action deleteUserFromSharedAppleDevice",
        name: delete_user_from_shared_apple_device,
        path: "/managedDevices/{{RID}}/deleteUserFromSharedAppleDevice",
        body: true
    );
    delete!(
        doc: "Delete navigation property deviceCategory for deviceManagement",
        name: delete_device_category,
        path: "/managedDevices/{{RID}}/deviceCategory"
    );
    get!(
        doc: "Get deviceCategory from deviceManagement",
        name: get_device_category,
        path: "/managedDevices/{{RID}}/deviceCategory"
    );
    patch!(
        doc: "Update the navigation property deviceCategory in deviceManagement",
        name: update_device_category,
        path: "/managedDevices/{{RID}}/deviceCategory",
        body: true
    );
    post!(
        doc: "Create new navigation property to deviceCompliancePolicyStates for deviceManagement",
        name: create_device_compliance_policy_states,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates",
        body: true
    );
    get!(
        doc: "Get deviceCompliancePolicyStates from deviceManagement",
        name: list_device_compliance_policy_states,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates"
    );
    get!(
        doc: "Get the number of the resource",
        name: device_compliance_policy_states_dafa,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates/$count"
    );
    delete!(
        doc: "Delete navigation property deviceCompliancePolicyStates for deviceManagement",
        name: delete_device_compliance_policy_states,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates/{{id}}",
        params: device_compliance_policy_state_id
    );
    get!(
        doc: "Get deviceCompliancePolicyStates from deviceManagement",
        name: get_device_compliance_policy_states,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates/{{id}}",
        params: device_compliance_policy_state_id
    );
    patch!(
        doc: "Update the navigation property deviceCompliancePolicyStates in deviceManagement",
        name: update_device_compliance_policy_states,
        path: "/managedDevices/{{RID}}/deviceCompliancePolicyStates/{{id}}",
        body: true,
        params: device_compliance_policy_state_id
    );
    post!(
        doc: "Create new navigation property to deviceConfigurationStates for deviceManagement",
        name: create_device_configuration_states,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates",
        body: true
    );
    get!(
        doc: "Get deviceConfigurationStates from deviceManagement",
        name: list_device_configuration_states,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_device_configuration_states_count,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates/$count"
    );
    delete!(
        doc: "Delete navigation property deviceConfigurationStates for deviceManagement",
        name: delete_device_configuration_states,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates/{{id}}",
        params: device_configuration_state_id
    );
    get!(
        doc: "Get deviceConfigurationStates from deviceManagement",
        name: get_device_configuration_states,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates/{{id}}",
        params: device_configuration_state_id
    );
    patch!(
        doc: "Update the navigation property deviceConfigurationStates in deviceManagement",
        name: update_device_configuration_states,
        path: "/managedDevices/{{RID}}/deviceConfigurationStates/{{id}}",
        body: true,
        params: device_configuration_state_id
    );
    post!(
        doc: "Invoke action disableLostMode",
        name: disable_lost_mode,
        path: "/managedDevices/{{RID}}/disableLostMode"
    );
    post!(
        doc: "Invoke action locateDevice",
        name: locate_device,
        path: "/managedDevices/{{RID}}/locateDevice"
    );
    post!(
        doc: "Invoke action logoutSharedAppleDeviceActiveUser",
        name: logout_shared_apple_device_active_user,
        path: "/managedDevices/{{RID}}/logoutSharedAppleDeviceActiveUser"
    );
    post!(
        doc: "Invoke action rebootNow",
        name: reboot_now,
        path: "/managedDevices/{{RID}}/rebootNow"
    );
    post!(
        doc: "Invoke action recoverPasscode",
        name: recover_passcode,
        path: "/managedDevices/{{RID}}/recoverPasscode"
    );
    post!(
        doc: "Invoke action remoteLock",
        name: remote_lock,
        path: "/managedDevices/{{RID}}/remoteLock"
    );
    post!(
        doc: "Invoke action requestRemoteAssistance",
        name: request_remote_assistance,
        path: "/managedDevices/{{RID}}/requestRemoteAssistance"
    );
    post!(
        doc: "Invoke action resetPasscode",
        name: reset_passcode,
        path: "/managedDevices/{{RID}}/resetPasscode"
    );
    post!(
        doc: "Invoke action retire",
        name: retire,
        path: "/managedDevices/{{RID}}/retire"
    );
    post!(
        doc: "Invoke action shutDown",
        name: shut_down,
        path: "/managedDevices/{{RID}}/shutDown"
    );
    post!(
        doc: "Invoke action syncDevice",
        name: sync_device,
        path: "/managedDevices/{{RID}}/syncDevice"
    );
    post!(
        doc: "Invoke action updateWindowsDeviceAccount",
        name: update_windows_device_account,
        path: "/managedDevices/{{RID}}/updateWindowsDeviceAccount",
        body: true
    );
    get!(
        doc: "Get users from deviceManagement",
        name: list_users,
        path: "/managedDevices/{{RID}}/users"
    );
    post!(
        doc: "Invoke action windowsDefenderScan",
        name: windows_defender_scan,
        path: "/managedDevices/{{RID}}/windowsDefenderScan",
        body: true
    );
    post!(
        doc: "Invoke action windowsDefenderUpdateSignatures",
        name: windows_defender_update_signatures,
        path: "/managedDevices/{{RID}}/windowsDefenderUpdateSignatures"
    );
    post!(
        doc: "Invoke action wipe",
        name: wipe,
        path: "/managedDevices/{{RID}}/wipe",
        body: true
    );
}