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
//! `dhcp` routes (`DhcpAPI`, new in v8.0.0).
//!
//! Ported from `eero-api src/eero/api/dhcp.py` (v8.4.1).
use ;
use Method;
/// `PUT /2.2/networks/{id}/settings` (or the parent's own `settings` link) — set the network's
/// DHCP configuration.
///
/// Ported from `eero-api src/eero/api/dhcp.py:102-185` (`DhcpAPI.set_dhcp`):
/// `sub_resource_url(network_id, "networks/{id}/settings", link="settings", parent=..)` — the
/// same `settings` sub-resource `NetworksApi`/`DnsApi`/`SecurityApi`/`SqmApi` write to.
pub const DHCP_SET_DHCP: Resource = Resource ;
/// `PUT /2.2/networks/{id}/settings` (or the parent's own `settings` link) — set the network's
/// WAN connection mode.
///
/// Ported from `eero-api src/eero/api/dhcp.py:187-242` (`DhcpAPI.set_connection_mode`): same URL
/// resolution as [`DHCP_SET_DHCP`].
pub const DHCP_SET_CONNECTION_MODE: Resource = Resource ;
/// `PUT /2.2/networks/{id}/settings` (or the parent's own `settings` link) — enable or disable
/// NAT port randomization.
///
/// Ported from `eero-api src/eero/api/dhcp.py:244-290` (`DhcpAPI.set_nat_port_randomization`):
/// same URL resolution as [`DHCP_SET_DHCP`].
pub const DHCP_SET_NAT_PORT_RANDOMIZATION: Resource = Resource ;
/// `POST /2.2/eeros/{id}/pppoe` — encrypt `PPPoE` credentials for an eero.
///
/// Ported from `eero-api src/eero/api/dhcp.py:292-336` (`DhcpAPI.set_pppoe`):
/// `resource_url(eero_serial_or_id, "eeros/{id}/pppoe")` — no `parent=` parameter in Python, no
/// `link` here either. Addressed by eero serial/id, not by network.
pub const DHCP_SET_PPPOE: Resource = Resource ;