We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
__api_properties__
1 parent 8458a52 commit 740d169Copy full SHA for 740d169
2 files changed
hcloud/load_balancers/domain.py
@@ -160,6 +160,16 @@ class LoadBalancerService(BaseDomain):
160
Configuration for http/https protocols, required when protocol is http/https
161
"""
162
163
+ __api_properties__ = (
164
+ "protocol",
165
+ "listen_port",
166
+ "destination_port",
167
+ "proxyprotocol",
168
+ "health_check",
169
+ "http",
170
+ )
171
+ __slots__ = __api_properties__
172
+
173
def __init__(
174
self,
175
protocol: str | None = None,
tests/unit/core/test_domain.py
@@ -191,3 +191,9 @@ def test_nested_list__eq__(self):
191
d2.child = [ActionDomain(id=2, name="child2")]
192
193
assert d1 != d2
194
195
196
+def test_base_domain_subclasses():
197
+ for c in BaseDomain.__subclasses__():
198
+ assert len(c.__api_properties__) > 0
199
+ assert len(c.__slots__) > 0
0 commit comments