1
0
Fork 0
mirror of https://github.com/ansible-collections/hetzner.hcloud.git synced 2026-02-04 08:01:49 +00:00

chore(deps): update dependency hcloud to v2.8.0 (#702)

##### SUMMARY

Bump hcloud-python the v2.8.0
This commit is contained in:
Jonas L. 2025-10-07 10:29:20 +02:00 committed by GitHub
parent fae6a39d7e
commit b8bec66906
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
18 changed files with 2062 additions and 63 deletions

View file

@ -53,7 +53,11 @@ class BoundImage(BoundModelBase, Image):
:return: (List[:class:`BoundAction <hcloud.actions.client.BoundAction>`], :class:`Meta <hcloud.core.domain.Meta>`)
"""
return self._client.get_actions_list(
self, sort=sort, page=page, per_page=per_page, status=status
self,
sort=sort,
page=page,
per_page=per_page,
status=status,
)
def get_actions(
@ -69,7 +73,11 @@ class BoundImage(BoundModelBase, Image):
Specify how the results are sorted. Choices: `id` `id:asc` `id:desc` `command` `command:asc` `command:desc` `status` `status:asc` `status:desc` `progress` `progress:asc` `progress:desc` `started` `started:asc` `started:desc` `finished` `finished:asc` `finished:desc`
:return: List[:class:`BoundAction <hcloud.actions.client.BoundAction>`]
"""
return self._client.get_actions(self, status=status, sort=sort)
return self._client.get_actions(
self,
status=status,
sort=sort,
)
def update(
self,
@ -88,7 +96,9 @@ class BoundImage(BoundModelBase, Image):
User-defined labels (key-value pairs)
:return: :class:`BoundImage <hcloud.images.client.BoundImage>`
"""
return self._client.update(self, description, type, labels)
return self._client.update(
self, description=description, type=type, labels=labels
)
def delete(self) -> bool:
"""Deletes an Image. Only images of type snapshot and backup can be deleted.
@ -104,7 +114,7 @@ class BoundImage(BoundModelBase, Image):
If true, prevents the snapshot from being deleted
:return: :class:`BoundAction <hcloud.actions.client.BoundAction>`
"""
return self._client.change_protection(self, delete)
return self._client.change_protection(self, delete=delete)
class ImagesPageResult(NamedTuple):