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
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
// GENERATED CODE

use crate::api_default_imports::*;

resource_api_client!(CallsApiClient, CallsIdApiClient, ResourceIdentity::Calls);

impl CallsApiClient {
    post!(
        doc: "Create call",
        name: create_calls,
        path: "/calls",
        body: true
    );
    get!(
        doc: "Get calls from communications",
        name: list_calls,
        path: "/calls"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_calls_count,
        path: "/calls/$count"
    );
    post!(
        doc: "Invoke action logTeleconferenceDeviceQuality",
        name: log_teleconference_device_quality,
        path: "/calls/logTeleconferenceDeviceQuality",
        body: true
    );
}

impl CallsIdApiClient {
    delete!(
        doc: "Delete navigation property calls for communications",
        name: delete_calls,
        path: "/calls/{{RID}}"
    );
    get!(
        doc: "Get calls from communications",
        name: get_calls,
        path: "/calls/{{RID}}"
    );
    patch!(
        doc: "Update the navigation property calls in communications",
        name: update_calls,
        path: "/calls/{{RID}}",
        body: true
    );
    post!(
        doc: "Invoke action addLargeGalleryView",
        name: add_large_gallery_view,
        path: "/calls/{{RID}}/addLargeGalleryView",
        body: true
    );
    post!(
        doc: "Invoke action answer",
        name: answer,
        path: "/calls/{{RID}}/answer",
        body: true
    );
    post!(
        doc: "Create new navigation property to audioRoutingGroups for communications",
        name: create_audio_routing_groups,
        path: "/calls/{{RID}}/audioRoutingGroups",
        body: true
    );
    get!(
        doc: "Get audioRoutingGroups from communications",
        name: list_audio_routing_groups,
        path: "/calls/{{RID}}/audioRoutingGroups"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_audio_routing_groups_count,
        path: "/calls/{{RID}}/audioRoutingGroups/$count"
    );
    delete!(
        doc: "Delete navigation property audioRoutingGroups for communications",
        name: delete_audio_routing_groups,
        path: "/calls/{{RID}}/audioRoutingGroups/{{id}}",
        params: audio_routing_group_id
    );
    get!(
        doc: "Get audioRoutingGroups from communications",
        name: get_audio_routing_groups,
        path: "/calls/{{RID}}/audioRoutingGroups/{{id}}",
        params: audio_routing_group_id
    );
    patch!(
        doc: "Update the navigation property audioRoutingGroups in communications",
        name: update_audio_routing_groups,
        path: "/calls/{{RID}}/audioRoutingGroups/{{id}}",
        body: true,
        params: audio_routing_group_id
    );
    post!(
        doc: "Invoke action cancelMediaProcessing",
        name: cancel_media_processing,
        path: "/calls/{{RID}}/cancelMediaProcessing",
        body: true
    );
    post!(
        doc: "Invoke action changeScreenSharingRole",
        name: change_screen_sharing_role,
        path: "/calls/{{RID}}/changeScreenSharingRole",
        body: true
    );
    post!(
        doc: "Create new navigation property to contentSharingSessions for communications",
        name: create_content_sharing_sessions,
        path: "/calls/{{RID}}/contentSharingSessions",
        body: true
    );
    get!(
        doc: "List contentSharingSessions",
        name: list_content_sharing_sessions,
        path: "/calls/{{RID}}/contentSharingSessions"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_content_sharing_sessions_count,
        path: "/calls/{{RID}}/contentSharingSessions/$count"
    );
    delete!(
        doc: "Delete navigation property contentSharingSessions for communications",
        name: delete_content_sharing_sessions,
        path: "/calls/{{RID}}/contentSharingSessions/{{id}}",
        params: content_sharing_session_id
    );
    get!(
        doc: "Get contentSharingSessions from communications",
        name: get_content_sharing_sessions,
        path: "/calls/{{RID}}/contentSharingSessions/{{id}}",
        params: content_sharing_session_id
    );
    patch!(
        doc: "Update the navigation property contentSharingSessions in communications",
        name: update_content_sharing_sessions,
        path: "/calls/{{RID}}/contentSharingSessions/{{id}}",
        body: true,
        params: content_sharing_session_id
    );
    post!(
        doc: "Invoke action keepAlive",
        name: keep_alive,
        path: "/calls/{{RID}}/keepAlive"
    );
    post!(
        doc: "Invoke action mute",
        name: mute,
        path: "/calls/{{RID}}/mute",
        body: true
    );
    post!(
        doc: "Create new navigation property to operations for communications",
        name: create_operations,
        path: "/calls/{{RID}}/operations",
        body: true
    );
    get!(
        doc: "Get operations from communications",
        name: list_operations,
        path: "/calls/{{RID}}/operations"
    );
    get!(
        doc: "Get the number of the resource",
        name: get_operations_count,
        path: "/calls/{{RID}}/operations/$count"
    );
    delete!(
        doc: "Delete navigation property operations for communications",
        name: delete_operations,
        path: "/calls/{{RID}}/operations/{{id}}",
        params: comms_operation_id
    );
    get!(
        doc: "Get operations from communications",
        name: get_operations,
        path: "/calls/{{RID}}/operations/{{id}}",
        params: comms_operation_id
    );
    patch!(
        doc: "Update the navigation property operations in communications",
        name: update_operations,
        path: "/calls/{{RID}}/operations/{{id}}",
        body: true,
        params: comms_operation_id
    );
    post!(
        doc: "Create new navigation property to participants for communications",
        name: create_participants,
        path: "/calls/{{RID}}/participants",
        body: true
    );
    get!(
        doc: "List participants",
        name: list_participants,
        path: "/calls/{{RID}}/participants"
    );
    get!(
        doc: "Get the number of the resource",
        name: count,
        path: "/calls/{{RID}}/participants/$count"
    );
    post!(
        doc: "Invoke action invite",
        name: invite,
        path: "/calls/{{RID}}/participants/invite",
        body: true
    );
    delete!(
        doc: "Delete navigation property participants for communications",
        name: delete_participants,
        path: "/calls/{{RID}}/participants/{{id}}",
        params: participant_id
    );
    get!(
        doc: "Get participants from communications",
        name: get_participants,
        path: "/calls/{{RID}}/participants/{{id}}",
        params: participant_id
    );
    patch!(
        doc: "Update the navigation property participants in communications",
        name: update_participants,
        path: "/calls/{{RID}}/participants/{{id}}",
        body: true,
        params: participant_id
    );
    post!(
        doc: "Invoke action mute",
        name: mute_participants,
        path: "/calls/{{RID}}/participants/{{id}}/mute",
        body: true,
        params: participant_id
    );
    post!(
        doc: "Invoke action startHoldMusic",
        name: start_hold_music,
        path: "/calls/{{RID}}/participants/{{id}}/startHoldMusic",
        body: true,
        params: participant_id
    );
    post!(
        doc: "Invoke action stopHoldMusic",
        name: stop_hold_music,
        path: "/calls/{{RID}}/participants/{{id}}/stopHoldMusic",
        body: true,
        params: participant_id
    );
    post!(
        doc: "Invoke action playPrompt",
        name: play_prompt,
        path: "/calls/{{RID}}/playPrompt",
        body: true
    );
    post!(
        doc: "Invoke action recordResponse",
        name: record_response,
        path: "/calls/{{RID}}/recordResponse",
        body: true
    );
    post!(
        doc: "Invoke action redirect",
        name: redirect,
        path: "/calls/{{RID}}/redirect",
        body: true
    );
    post!(
        doc: "Invoke action reject",
        name: reject,
        path: "/calls/{{RID}}/reject",
        body: true
    );
    post!(
        doc: "Invoke action subscribeToTone",
        name: subscribe_to_tone,
        path: "/calls/{{RID}}/subscribeToTone",
        body: true
    );
    post!(
        doc: "Invoke action transfer",
        name: transfer,
        path: "/calls/{{RID}}/transfer",
        body: true
    );
    post!(
        doc: "Invoke action unmute",
        name: unmute,
        path: "/calls/{{RID}}/unmute",
        body: true
    );
    post!(
        doc: "Invoke action updateRecordingStatus",
        name: update_recording_status,
        path: "/calls/{{RID}}/updateRecordingStatus",
        body: true
    );
}