Skip to content

Commit

Permalink
Make sure all domain classes inherit from BaseDomain
Browse files Browse the repository at this point in the history
  • Loading branch information
jooola committed Aug 4, 2023
1 parent dd865b2 commit 6c8e129
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion hcloud/datacenters/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def __init__(
self.server_types = server_types


class DatacenterServerTypes:
class DatacenterServerTypes(BaseDomain):
"""DatacenterServerTypes Domain
:param available: List[:class:`BoundServerTypes <hcloud.server_types.client.BoundServerTypes>`]
Expand Down
4 changes: 2 additions & 2 deletions hcloud/firewalls/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ def __init__(
self.created = isoparse(created) if created else None


class FirewallRule:
class FirewallRule(BaseDomain):
"""Firewall Rule Domain
:param direction: str
Expand Down Expand Up @@ -122,7 +122,7 @@ def to_payload(self) -> dict[str, Any]:
return payload


class FirewallResource:
class FirewallResource(BaseDomain):
"""Firewall Used By Domain
:param type: str
Expand Down

0 comments on commit 6c8e129

Please sign in to comment.