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
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(
    EventsInstancesApiClient,
    EventsInstancesIdApiClient,
    ResourceIdentity::EventsInstances
);

impl EventsInstancesApiClient {
    get!(
        doc: "List instances",
        name: list_instances,
        path: "/instances"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_instances_count,
        path: "/instances/$count"
    );
    get!(
        doc: "Invoke function delta",
        name: delta,
        path: "/instances/delta()"
    );
}

impl EventsInstancesIdApiClient {
    get!(
        doc: "Get instances from users",
        name: get_instances,
        path: "/instances/{{RID}}"
    );
    post!(
        doc: "Invoke action accept",
        name: accept,
        path: "/instances/{{RID}}/accept",
        body: true
    );
    post!(
        doc: "Add attachment",
        name: create_attachments,
        path: "/instances/{{RID}}/attachments",
        body: true
    );
    get!(
        doc: "List attachments",
        name: list_attachments,
        path: "/instances/{{RID}}/attachments"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_attachments_count,
        path: "/instances/{{RID}}/attachments/$count"
    );
    post!(
        doc: "Invoke action createUploadSession",
        name: create_upload_session,
        path: "/instances/{{RID}}/attachments/createUploadSession",
        body: true
    );
    delete!(
        doc: "Delete navigation property attachments for users",
        name: delete_attachments,
        path: "/instances/{{RID}}/attachments/{{id}}",
        params: attachment_id
    );
    get!(
        doc: "Get attachments from users",
        name: get_attachments,
        path: "/instances/{{RID}}/attachments/{{id}}",
        params: attachment_id
    );
    get!(
        doc: "Get calendar from users",
        name: get_calendar,
        path: "/instances/{{RID}}/calendar"
    );
    post!(
        doc: "Invoke action cancel",
        name: cancel,
        path: "/instances/{{RID}}/cancel",
        body: true
    );
    post!(
        doc: "Invoke action decline",
        name: decline,
        path: "/instances/{{RID}}/decline",
        body: true
    );
    post!(
        doc: "Invoke action dismissReminder",
        name: dismiss_reminder,
        path: "/instances/{{RID}}/dismissReminder"
    );
    post!(
        doc: "Create open extension",
        name: create_extensions,
        path: "/instances/{{RID}}/extensions",
        body: true
    );
    get!(
        doc: "Get extensions from users",
        name: list_extensions,
        path: "/instances/{{RID}}/extensions"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/instances/{{RID}}/extensions/$count"
    );
    delete!(
        doc: "Delete navigation property extensions for users",
        name: delete_extensions,
        path: "/instances/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    get!(
        doc: "Get extensions from users",
        name: get_extensions,
        path: "/instances/{{RID}}/extensions/{{id}}",
        params: extension_id
    );
    patch!(
        doc: "Update the navigation property extensions in users",
        name: update_extensions,
        path: "/instances/{{RID}}/extensions/{{id}}",
        body: true,
        params: extension_id
    );
    post!(
        doc: "Invoke action forward",
        name: forward,
        path: "/instances/{{RID}}/forward",
        body: true
    );
    post!(
        doc: "Invoke action snoozeReminder",
        name: snooze_reminder,
        path: "/instances/{{RID}}/snoozeReminder",
        body: true
    );
    post!(
        doc: "Invoke action tentativelyAccept",
        name: tentatively_accept,
        path: "/instances/{{RID}}/tentativelyAccept",
        body: true
    );
}