Skip to content

Commit

Permalink
fix: prices properties are list of dict (#438)
Browse files Browse the repository at this point in the history
Closes #437
  • Loading branch information
jooola committed Aug 19, 2024
1 parent 1894278 commit 9621604
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 2 additions & 2 deletions hcloud/load_balancer_types/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class LoadBalancerType(BaseDomain, DomainIdentityMixin):
Max amount of targets the Load Balancer can handle
:param max_assigned_certificates: int
Max amount of certificates the Load Balancer can serve
:param prices: Dict
:param prices: List of dict
Prices in different locations
"""
Expand All @@ -46,7 +46,7 @@ def __init__(
max_services: int | None = None,
max_targets: int | None = None,
max_assigned_certificates: int | None = None,
prices: dict | None = None,
prices: list[dict] | None = None,
):
self.id = id
self.name = name
Expand Down
4 changes: 2 additions & 2 deletions hcloud/server_types/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ class ServerType(BaseDomain, DomainIdentityMixin):
Memory a server of this type will have in GB
:param disk: int
Disk size a server of this type will have in GB
:param prices: Dict
:param prices: List of dict
Prices in different locations
:param storage_type: str
Type of server boot drive. Local has higher speed. Network has better availability. Choices: `local`, `network`
Expand Down Expand Up @@ -69,7 +69,7 @@ def __init__(
cores: int | None = None,
memory: int | None = None,
disk: int | None = None,
prices: dict | None = None,
prices: list[dict] | None = None,
storage_type: str | None = None,
cpu_type: str | None = None,
architecture: str | None = None,
Expand Down

0 comments on commit 9621604

Please sign in to comment.