1use crate::api_default_imports::*;
4
5api_client!(ScheduleApiClient, ResourceIdentity::Schedule);
6
7impl ScheduleApiClient {
8 delete!(
9 doc: "Delete navigation property schedule for teams",
10 name: delete_schedule,
11 path: "/schedule"
12 );
13 get!(
14 doc: "Get schedule",
15 name: get_schedule,
16 path: "/schedule"
17 );
18 put!(
19 doc: "Update the navigation property schedule in teams",
20 name: update_schedule,
21 path: "/schedule",
22 body: true
23 );
24 post!(
25 doc: "Create new navigation property to offerShiftRequests for teams",
26 name: create_offer_shift_requests,
27 path: "/schedule/offerShiftRequests",
28 body: true
29 );
30 get!(
31 doc: "List offerShiftRequest",
32 name: list_offer_shift_requests,
33 path: "/schedule/offerShiftRequests"
34 );
35 get!(
36 doc: "Get the number of the resource",
37 name: get_offer_shift_requests_count,
38 path: "/schedule/offerShiftRequests/$count"
39 );
40 delete!(
41 doc: "Delete navigation property offerShiftRequests for teams",
42 name: delete_offer_shift_requests,
43 path: "/schedule/offerShiftRequests/{{id}}",
44 params: offer_shift_request_id
45 );
46 get!(
47 doc: "Get offerShiftRequests from teams",
48 name: get_offer_shift_requests,
49 path: "/schedule/offerShiftRequests/{{id}}",
50 params: offer_shift_request_id
51 );
52 patch!(
53 doc: "Update the navigation property offerShiftRequests in teams",
54 name: update_offer_shift_requests,
55 path: "/schedule/offerShiftRequests/{{id}}",
56 body: true,
57 params: offer_shift_request_id
58 );
59 post!(
60 doc: "Create openShiftChangeRequest",
61 name: create_open_shift_change_requests,
62 path: "/schedule/openShiftChangeRequests",
63 body: true
64 );
65 get!(
66 doc: "List openShiftChangeRequests",
67 name: list_open_shift_change_requests,
68 path: "/schedule/openShiftChangeRequests"
69 );
70 get!(
71 doc: "Get the number of the resource",
72 name: get_open_shift_change_requests_count,
73 path: "/schedule/openShiftChangeRequests/$count"
74 );
75 delete!(
76 doc: "Delete navigation property openShiftChangeRequests for teams",
77 name: delete_open_shift_change_requests,
78 path: "/schedule/openShiftChangeRequests/{{id}}",
79 params: open_shift_change_request_id
80 );
81 get!(
82 doc: "Get openShiftChangeRequests from teams",
83 name: get_open_shift_change_requests,
84 path: "/schedule/openShiftChangeRequests/{{id}}",
85 params: open_shift_change_request_id
86 );
87 patch!(
88 doc: "Update the navigation property openShiftChangeRequests in teams",
89 name: update_open_shift_change_requests,
90 path: "/schedule/openShiftChangeRequests/{{id}}",
91 body: true,
92 params: open_shift_change_request_id
93 );
94 post!(
95 doc: "Create new navigation property to openShifts for teams",
96 name: create_open_shifts,
97 path: "/schedule/openShifts",
98 body: true
99 );
100 get!(
101 doc: "List openShifts",
102 name: list_open_shifts,
103 path: "/schedule/openShifts"
104 );
105 get!(
106 doc: "Get the number of the resource",
107 name: open_shifts_bdbd,
108 path: "/schedule/openShifts/$count"
109 );
110 delete!(
111 doc: "Delete navigation property openShifts for teams",
112 name: delete_open_shifts,
113 path: "/schedule/openShifts/{{id}}",
114 params: open_shift_id
115 );
116 get!(
117 doc: "Get openShifts from teams",
118 name: get_open_shifts,
119 path: "/schedule/openShifts/{{id}}",
120 params: open_shift_id
121 );
122 patch!(
123 doc: "Update the navigation property openShifts in teams",
124 name: update_open_shifts,
125 path: "/schedule/openShifts/{{id}}",
126 body: true,
127 params: open_shift_id
128 );
129 post!(
130 doc: "Create schedulingGroup",
131 name: create_scheduling_groups,
132 path: "/schedule/schedulingGroups",
133 body: true
134 );
135 get!(
136 doc: "List scheduleGroups",
137 name: list_scheduling_groups,
138 path: "/schedule/schedulingGroups"
139 );
140 get!(
141 doc: "Get the number of the resource",
142 name: get_scheduling_groups_count,
143 path: "/schedule/schedulingGroups/$count"
144 );
145 delete!(
146 doc: "Delete navigation property schedulingGroups for teams",
147 name: delete_scheduling_groups,
148 path: "/schedule/schedulingGroups/{{id}}",
149 params: scheduling_group_id
150 );
151 get!(
152 doc: "Get schedulingGroups from teams",
153 name: get_scheduling_groups,
154 path: "/schedule/schedulingGroups/{{id}}",
155 params: scheduling_group_id
156 );
157 patch!(
158 doc: "Update the navigation property schedulingGroups in teams",
159 name: update_scheduling_groups,
160 path: "/schedule/schedulingGroups/{{id}}",
161 body: true,
162 params: scheduling_group_id
163 );
164 post!(
165 doc: "Invoke action share",
166 name: share,
167 path: "/schedule/share",
168 body: true
169 );
170 post!(
171 doc: "Create shift",
172 name: create_shifts,
173 path: "/schedule/shifts",
174 body: true
175 );
176 get!(
177 doc: "List shifts",
178 name: list_shifts,
179 path: "/schedule/shifts"
180 );
181 get!(
182 doc: "Get the number of the resource",
183 name: get_shifts_count,
184 path: "/schedule/shifts/$count"
185 );
186 delete!(
187 doc: "Delete navigation property shifts for teams",
188 name: delete_shifts,
189 path: "/schedule/shifts/{{id}}",
190 params: shift_id
191 );
192 get!(
193 doc: "Get shifts from teams",
194 name: get_shifts,
195 path: "/schedule/shifts/{{id}}",
196 params: shift_id
197 );
198 patch!(
199 doc: "Update the navigation property shifts in teams",
200 name: update_shifts,
201 path: "/schedule/shifts/{{id}}",
202 body: true,
203 params: shift_id
204 );
205 post!(
206 doc: "Create swapShiftsChangeRequest",
207 name: create_swap_shifts_change_requests,
208 path: "/schedule/swapShiftsChangeRequests",
209 body: true
210 );
211 get!(
212 doc: "List swapShiftsChangeRequest",
213 name: list_swap_shifts_change_requests,
214 path: "/schedule/swapShiftsChangeRequests"
215 );
216 get!(
217 doc: "Get the number of the resource",
218 name: get_swap_shifts_change_requests_count,
219 path: "/schedule/swapShiftsChangeRequests/$count"
220 );
221 delete!(
222 doc: "Delete navigation property swapShiftsChangeRequests for teams",
223 name: delete_swap_shifts_change_requests,
224 path: "/schedule/swapShiftsChangeRequests/{{id}}",
225 params: swap_shifts_change_request_id
226 );
227 get!(
228 doc: "Get swapShiftsChangeRequests from teams",
229 name: get_swap_shifts_change_requests,
230 path: "/schedule/swapShiftsChangeRequests/{{id}}",
231 params: swap_shifts_change_request_id
232 );
233 patch!(
234 doc: "Update the navigation property swapShiftsChangeRequests in teams",
235 name: update_swap_shifts_change_requests,
236 path: "/schedule/swapShiftsChangeRequests/{{id}}",
237 body: true,
238 params: swap_shifts_change_request_id
239 );
240 post!(
241 doc: "Create timeOffReason",
242 name: create_time_off_reasons,
243 path: "/schedule/timeOffReasons",
244 body: true
245 );
246 get!(
247 doc: "List timeOffReasons",
248 name: list_time_off_reasons,
249 path: "/schedule/timeOffReasons"
250 );
251 get!(
252 doc: "Get the number of the resource",
253 name: get_time_off_reasons_count,
254 path: "/schedule/timeOffReasons/$count"
255 );
256 delete!(
257 doc: "Delete navigation property timeOffReasons for teams",
258 name: delete_time_off_reasons,
259 path: "/schedule/timeOffReasons/{{id}}",
260 params: time_off_reason_id
261 );
262 get!(
263 doc: "Get timeOffReasons from teams",
264 name: get_time_off_reasons,
265 path: "/schedule/timeOffReasons/{{id}}",
266 params: time_off_reason_id
267 );
268 patch!(
269 doc: "Update the navigation property timeOffReasons in teams",
270 name: update_time_off_reasons,
271 path: "/schedule/timeOffReasons/{{id}}",
272 body: true,
273 params: time_off_reason_id
274 );
275 post!(
276 doc: "Create new navigation property to timeOffRequests for teams",
277 name: create_time_off_requests,
278 path: "/schedule/timeOffRequests",
279 body: true
280 );
281 get!(
282 doc: "List timeOffRequest",
283 name: list_time_off_requests,
284 path: "/schedule/timeOffRequests"
285 );
286 get!(
287 doc: "Get the number of the resource",
288 name: get_time_off_requests_count,
289 path: "/schedule/timeOffRequests/$count"
290 );
291 delete!(
292 doc: "Delete navigation property timeOffRequests for teams",
293 name: delete_time_off_requests,
294 path: "/schedule/timeOffRequests/{{id}}",
295 params: time_off_request_id
296 );
297 get!(
298 doc: "Get timeOffRequests from teams",
299 name: get_time_off_requests,
300 path: "/schedule/timeOffRequests/{{id}}",
301 params: time_off_request_id
302 );
303 patch!(
304 doc: "Update the navigation property timeOffRequests in teams",
305 name: update_time_off_requests,
306 path: "/schedule/timeOffRequests/{{id}}",
307 body: true,
308 params: time_off_request_id
309 );
310 post!(
311 doc: "Create timeOff",
312 name: create_times_off,
313 path: "/schedule/timesOff",
314 body: true
315 );
316 get!(
317 doc: "List timesOff",
318 name: list_times_off,
319 path: "/schedule/timesOff"
320 );
321 get!(
322 doc: "Get the number of the resource",
323 name: get_times_off_count,
324 path: "/schedule/timesOff/$count"
325 );
326 delete!(
327 doc: "Delete navigation property timesOff for teams",
328 name: delete_times_off,
329 path: "/schedule/timesOff/{{id}}",
330 params: time_off_id
331 );
332 get!(
333 doc: "Get timesOff from teams",
334 name: get_times_off,
335 path: "/schedule/timesOff/{{id}}",
336 params: time_off_id
337 );
338 patch!(
339 doc: "Update the navigation property timesOff in teams",
340 name: update_times_off,
341 path: "/schedule/timesOff/{{id}}",
342 body: true,
343 params: time_off_id
344 );
345}