graph_rs_sdk/solutions/virtual_events_events/
request.rs1use crate::api_default_imports::*;
4use crate::solutions::*;
5
6api_client!(
7 VirtualEventsEventsApiClient,
8 VirtualEventsEventsIdApiClient,
9 ResourceIdentity::VirtualEventsEvents
10);
11
12impl VirtualEventsEventsApiClient {
13 post!(
14 doc: "Create new navigation property to events for solutions",
15 name: create_events,
16 path: "/events",
17 body: true
18 );
19 get!(
20 doc: "Get events from solutions",
21 name: list_events,
22 path: "/events"
23 );
24 get!(
25 doc: "Get the number of the resource",
26 name: get_events_count,
27 path: "/events/$count"
28 );
29}
30
31impl VirtualEventsEventsIdApiClient {
32 api_client_link!(sessions, VirtualEventsSessionsApiClient);
33 api_client_link_id!(session, VirtualEventsSessionsIdApiClient);
34
35 delete!(
36 doc: "Delete navigation property events for solutions",
37 name: delete_events,
38 path: "/events/{{RID}}"
39 );
40 get!(
41 doc: "Get events from solutions",
42 name: get_events,
43 path: "/events/{{RID}}"
44 );
45 patch!(
46 doc: "Update the navigation property events in solutions",
47 name: update_events,
48 path: "/events/{{RID}}",
49 body: true
50 );
51}