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
//! `dns_policies` routes (`DnsPoliciesAPI`, new in v8.0.0).
//!
//! Ported from `eero-api src/eero/api/dns_policies.py` (v8.0.4). Premium (Eero Plus/Secure)
//! feature family; replaces the removed `ProfilesAPI` content-filter/block-list/blocked-app
//! writes (`crate::routes::profiles`'s module docs). No `DELETE` verb anywhere in this family —
//! removal is expressed as `is_delete: true` on a `PUT`.
use ;
use Method;
/// `GET /2.2/networks/{network_id}/dns_policies/advanced_content_filter` — the network's advanced
/// content filter allow/block lists. Live-verified.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:129-163`
/// (`DnsPoliciesAPI.get_advanced_content_filter`).
pub const DNS_POLICIES_GET_ADVANCED_CONTENT_FILTER: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/network/allowed` — add/remove a domain from the
/// network-wide allow list.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:167-230` (`DnsPoliciesAPI.allow_domain`).
pub const DNS_POLICIES_ALLOW_DOMAIN: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/network/allowed/cnames` — allow a list of CNAME
/// domains network-wide.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:233-272` (`DnsPoliciesAPI.allow_cnames`).
pub const DNS_POLICIES_ALLOW_CNAMES: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/network/blocked` — add/remove a domain from the
/// network-wide block list.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:275-324` (`DnsPoliciesAPI.block_domain`).
pub const DNS_POLICIES_BLOCK_DOMAIN: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/profiles/allowed` — add/remove a domain from one
/// or more profiles' allow lists.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:327-389`
/// (`DnsPoliciesAPI.allow_domain_for_profiles`).
pub const DNS_POLICIES_ALLOW_DOMAIN_FOR_PROFILES: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/profiles/allowed/cnames` — allow a list of CNAME
/// domains for one or more profiles.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:392-432`
/// (`DnsPoliciesAPI.allow_cnames_for_profiles`).
pub const DNS_POLICIES_ALLOW_CNAMES_FOR_PROFILES: Resource = Resource ;
/// `PUT /2.2/networks/{network_id}/dns_policies/profiles/blocked` — add/remove a domain from one
/// or more profiles' block lists.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:437-488`
/// (`DnsPoliciesAPI.block_domain_for_profiles`).
pub const DNS_POLICIES_BLOCK_DOMAIN_FOR_PROFILES: Resource = Resource ;
/// `GET /2.2/networks/{network_id}/dns_policies/profiles/{profile_id}/applications` — the
/// applications a profile can block, and which are blocked. Live-verified.
///
/// `link: None` — this sub-tree shares no published link with any envelope this SDK can read
/// (`dns_policies.py:77-92`'s own docstring). `profile_id` must be normalised to its trailing id
/// via [`crate::util::id_from_url`] before resolving through this route — see
/// [`crate::endpoints::dns_policies::DnsPoliciesApi::get_profile_applications`]'s own docs for
/// why.
///
/// Ported from `eero-api src/eero/api/dns_policies.py:77-92,491-521`
/// (`DnsPoliciesAPI._profile_applications_url`/`get_profile_applications`).
pub const DNS_POLICIES_GET_PROFILE_APPLICATIONS: Nested = Nested ;
/// `PUT /2.2/networks/{network_id}/dns_policies/profiles/{profile_id}/applications/blocked` —
/// replace the blocked-applications list for a profile.
///
/// Same `profile_id` normalisation note as [`DNS_POLICIES_GET_PROFILE_APPLICATIONS`].
///
/// Ported from `eero-api src/eero/api/dns_policies.py:94-108,521-551`
/// (`DnsPoliciesAPI._profile_applications_blocked_url`/`set_profile_blocked_applications`).
pub const DNS_POLICIES_SET_PROFILE_BLOCKED_APPLICATIONS: Nested = Nested ;