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
//! DHCP-reservation routes (`ReservationsAPI`).
// ------------------------------ reservations (`ReservationsAPI`) ------------------------
use ;
use Method;
// ------------------------------------ v8.0.4 routes --------------------------------------
/// `GET /2.2/networks/{id}/reservations` (or the parent's own `reservations` link) — list DHCP
/// reservations.
///
/// Ported from `eero-api src/eero/api/reservations.py:82-107` (v8.0.4,
/// `ReservationsAPI.get_reservations`): `sub_resource_url(network,
/// "networks/{id}/reservations", link="reservations", parent=.., version=API_VERSION_DEFAULT)`.
pub const RESERVATIONS_GET: Resource = Resource ;
/// `POST /2.2/networks/{id}/reservations` (or the parent's own `reservations` link) — create a
/// DHCP reservation.
///
/// Ported from `eero-api src/eero/api/reservations.py:114-153` (v8.0.4,
/// `ReservationsAPI.create_reservation`): same URL resolution as [`RESERVATIONS_GET`].
pub const RESERVATIONS_CREATE: Resource = Resource ;
/// `PUT /2.2/networks/{network}/reservations/{reservation}` (or an already-resolved path/URL) —
/// update a DHCP reservation.
///
/// Ported from `eero-api src/eero/api/reservations.py:154-184` (v8.0.4,
/// `ReservationsAPI.update_reservation` via the free function `_resolve_reservation_url`):
/// `resolve_nested_url(network, reservation, prefix="reservations")`, used by
/// [`crate::endpoints::reservations::ReservationsApi::update_reservation`] only for its bare-id
/// and path/URL dispatch branches — the "`reservation` is a cached envelope" branch resolves via
/// [`crate::links::self_url`] directly instead, never through this route. No `link`: Python's
/// `_resolve_reservation_url` never consults a parent's `resources` map.
pub const RESERVATIONS_UPDATE: Nested = Nested ;
/// `DELETE /2.2/networks/{network}/reservations/{reservation}` (bare id, path, or URL) — delete
/// a DHCP reservation.
///
/// Ported from `eero-api src/eero/api/reservations.py:187-216` (v8.0.4,
/// `ReservationsAPI.delete_reservation`): `resolve_nested_url(network, reservation,
/// prefix="reservations")`.
pub const RESERVATIONS_DELETE: Nested = Nested ;