graph_rs_sdk/device_management/troubleshooting_events/
request.rs1use crate::api_default_imports::*;
4
5api_client!(
6 TroubleshootingEventsApiClient,
7 TroubleshootingEventsIdApiClient,
8 ResourceIdentity::TroubleshootingEvents
9);
10
11impl TroubleshootingEventsApiClient {
12 post!(
13 doc: "Create new navigation property to troubleshootingEvents for deviceManagement",
14 name: create_troubleshooting_events,
15 path: "/troubleshootingEvents",
16 body: true
17 );
18 get!(
19 doc: "Get troubleshootingEvents from deviceManagement",
20 name: list_troubleshooting_events,
21 path: "/troubleshootingEvents"
22 );
23 get!(
24 doc: "Get the number of the resource",
25 name: get_troubleshooting_events_count,
26 path: "/troubleshootingEvents/$count"
27 );
28}
29
30impl TroubleshootingEventsIdApiClient {
31 delete!(
32 doc: "Delete navigation property troubleshootingEvents for deviceManagement",
33 name: delete_troubleshooting_events,
34 path: "/troubleshootingEvents/{{RID}}"
35 );
36 get!(
37 doc: "Get troubleshootingEvents from deviceManagement",
38 name: get_troubleshooting_events,
39 path: "/troubleshootingEvents/{{RID}}"
40 );
41 patch!(
42 doc: "Update the navigation property troubleshootingEvents in deviceManagement",
43 name: update_troubleshooting_events,
44 path: "/troubleshootingEvents/{{RID}}",
45 body: true
46 );
47}