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::*;
use crate::solutions::*;

api_client!(
    VirtualEventsEventsApiClient,
    VirtualEventsEventsIdApiClient,
    ResourceIdentity::VirtualEventsEvents
);

impl VirtualEventsEventsApiClient {
    post!(
        doc: "Create new navigation property to events for solutions",
        name: create_events,
        path: "/events",
        body: true
    );
    get!(
        doc: "Get events from solutions",
        name: list_events,
        path: "/events"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_events_count,
        path: "/events/$count"
    );
}

impl VirtualEventsEventsIdApiClient {
    api_client_link!(sessions, VirtualEventsSessionsApiClient);
    api_client_link_id!(session, VirtualEventsSessionsIdApiClient);

    delete!(
        doc: "Delete navigation property events for solutions",
        name: delete_events,
        path: "/events/{{RID}}"
    );
    get!(
        doc: "Get events from solutions",
        name: get_events,
        path: "/events/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property events in solutions",
        name: update_events,
        path: "/events/{{RID}}",
        body: true
    );
}