diff --git a/hcloud/images/client.py b/hcloud/images/client.py index d60d948..a7d41e0 100644 --- a/hcloud/images/client.py +++ b/hcloud/images/client.py @@ -325,6 +325,8 @@ def get_by_name_and_architecture( self, name: str, architecture: str, + *, + include_deprecated: bool | None = None, ) -> BoundImage | None: """Get image by name @@ -332,9 +334,15 @@ def get_by_name_and_architecture( Used to identify the image. :param architecture: str Used to identify the image. + :param include_deprecated: bool (optional) + Include deprecated images. Default: False :return: :class:`BoundImage ` """ - return self._get_first_by(name=name, architecture=[architecture]) + return self._get_first_by( + name=name, + architecture=[architecture], + include_deprecated=include_deprecated, + ) def update( self,