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.16.0 (#792)

This PR contains the following updates:

| Package | Change |
[Age](https://docs.renovatebot.com/merge-confidence/) |
[Confidence](https://docs.renovatebot.com/merge-confidence/) |
|---|---|---|---|
| [hcloud](https://redirect.github.com/hetznercloud/hcloud-python)
([changelog](https://redirect.github.com/hetznercloud/hcloud-python/blob/main/CHANGELOG.md))
| `2.15.0` → `2.16.0` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/2.16.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/2.15.0/2.16.0?slim=true)
|

---

### Release Notes

<details>
<summary>hetznercloud/hcloud-python (hcloud)</summary>

###
[`v2.16.0`](https://redirect.github.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#v2160)

[Compare
Source](https://redirect.github.com/hetznercloud/hcloud-python/compare/v2.15.0...v2.16.0)

##### Storage Boxes support is now generally available

The experimental phase for Storage Boxes is over, and Storage Boxes
support is now generally available.

##### Features

- **servers**: allow setting user\_data for rebuild
([#&#8203;627](https://redirect.github.com/hetznercloud/hcloud-python/issues/627))
- Storage Box support no longer experimental
([#&#8203;626](https://redirect.github.com/hetznercloud/hcloud-python/issues/626))

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.

♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.

---

- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box

---

This PR was generated by [Mend Renovate](https://mend.io/renovate/).
View the [repository job
log](https://developer.mend.io/github/ansible-collections/hetzner.hcloud).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0Mi44NS4xIiwidXBkYXRlZEluVmVyIjoiNDIuODUuMSIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <ljonas@riseup.net>
This commit is contained in:
renovate[bot] 2026-01-23 13:37:41 +01:00 committed by GitHub
parent 8e0517e4be
commit 7f535fef44
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 10 additions and 215 deletions

View file

@ -361,14 +361,16 @@ class BoundServer(BoundModelBase[Server], Server):
def rebuild(
self,
image: Image | BoundImage,
user_data: str | None = None,
# pylint: disable=unused-argument
**kwargs: Any,
) -> RebuildResponse:
"""Rebuilds a server overwriting its disk with the content of an image, thereby destroying all data on the target server.
:param image: Image to use for the rebuilt server
:param user_data: Cloud-Init user data to use during Server rebuild (optional)
"""
return self._client.rebuild(self, image=image)
return self._client.rebuild(self, image=image, user_data=user_data)
def change_type(
self,
@ -1039,6 +1041,7 @@ class ServersClient(
self,
server: Server | BoundServer,
image: Image | BoundImage,
user_data: str | None = None,
# pylint: disable=unused-argument
**kwargs: Any,
) -> RebuildResponse:
@ -1046,8 +1049,12 @@ class ServersClient(
:param server: Server to rebuild
:param image: Image to use for the rebuilt server
:param user_data: Cloud-Init user data to use during Server rebuild (optional)
"""
data: dict[str, Any] = {"image": image.id_or_name}
if user_data is not None:
data["user_data"] = user_data
response = self._client.request(
url=f"{self._base_url}/{server.id}/actions/rebuild",
method="POST",