Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: prices properties are list of dict #438

Merged
merged 1 commit into from
Aug 19, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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