Skip to content

Commit 6b977e2

Browse files
authored
feat!: remove deprecated include_wildcard_architecture argument in IsosClient.get_list and IsosClient.get_all (#402)
1 parent 428ea7e commit 6b977e2

File tree

1 file changed

+0
-23
lines changed

1 file changed

+0
-23
lines changed

hcloud/isos/client.py

-23
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
from __future__ import annotations
22

33
from typing import TYPE_CHECKING, Any, NamedTuple
4-
from warnings import warn
54

65
from ..core import BoundModelBase, ClientEntityBase, Meta
76
from .domain import Iso
@@ -37,7 +36,6 @@ def get_list(
3736
self,
3837
name: str | None = None,
3938
architecture: list[str] | None = None,
40-
include_wildcard_architecture: bool | None = None,
4139
include_architecture_wildcard: bool | None = None,
4240
page: int | None = None,
4341
per_page: int | None = None,
@@ -48,8 +46,6 @@ def get_list(
4846
Can be used to filter ISOs by their name.
4947
:param architecture: List[str] (optional)
5048
Can be used to filter ISOs by their architecture. Choices: x86 arm
51-
:param include_wildcard_architecture: bool (optional)
52-
Deprecated, please use `include_architecture_wildcard` instead.
5349
:param include_architecture_wildcard: bool (optional)
5450
Custom ISOs do not have an architecture set. You must also set this flag to True if you are filtering by
5551
architecture and also want custom ISOs.
@@ -59,14 +55,6 @@ def get_list(
5955
Specifies how many results are returned by page
6056
:return: (List[:class:`BoundIso <hcloud.isos.client.BoundIso>`], :class:`Meta <hcloud.core.domain.Meta>`)
6157
"""
62-
63-
if include_wildcard_architecture is not None:
64-
warn(
65-
"The `include_wildcard_architecture` argument is deprecated, please use the `include_architecture_wildcard` argument instead.",
66-
DeprecationWarning,
67-
)
68-
include_architecture_wildcard = include_wildcard_architecture
69-
7058
params: dict[str, Any] = {}
7159
if name is not None:
7260
params["name"] = name
@@ -87,7 +75,6 @@ def get_all(
8775
self,
8876
name: str | None = None,
8977
architecture: list[str] | None = None,
90-
include_wildcard_architecture: bool | None = None,
9178
include_architecture_wildcard: bool | None = None,
9279
) -> list[BoundIso]:
9380
"""Get all ISOs
@@ -96,21 +83,11 @@ def get_all(
9683
Can be used to filter ISOs by their name.
9784
:param architecture: List[str] (optional)
9885
Can be used to filter ISOs by their architecture. Choices: x86 arm
99-
:param include_wildcard_architecture: bool (optional)
100-
Deprecated, please use `include_architecture_wildcard` instead.
10186
:param include_architecture_wildcard: bool (optional)
10287
Custom ISOs do not have an architecture set. You must also set this flag to True if you are filtering by
10388
architecture and also want custom ISOs.
10489
:return: List[:class:`BoundIso <hcloud.isos.client.BoundIso>`]
10590
"""
106-
107-
if include_wildcard_architecture is not None:
108-
warn(
109-
"The `include_wildcard_architecture` argument is deprecated, please use the `include_architecture_wildcard` argument instead.",
110-
DeprecationWarning,
111-
)
112-
include_architecture_wildcard = include_wildcard_architecture
113-
11491
return self._iter_pages(
11592
self.get_list,
11693
name=name,

0 commit comments

Comments
 (0)