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.13.0 (#776)

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.12.0` -> `2.13.0` |
![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/2.13.0?slim=true)
|
![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/2.12.0/2.13.0?slim=true)
|

---

### Release Notes

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

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

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

##### Features

- add per primary ip actions list operations
([#&#8203;608](https://redirect.github.com/hetznercloud/hcloud-python/issues/608))
- deprecate datacenter in `primary ips` and `servers`
([#&#8203;609](https://redirect.github.com/hetznercloud/hcloud-python/issues/609))

</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:eyJjcmVhdGVkSW5WZXIiOiI0Mi41OS4wIiwidXBkYXRlZEluVmVyIjoiNDIuNTkuMCIsInRhcmdldEJyYW5jaCI6Im1haW4iLCJsYWJlbHMiOltdfQ==-->

---------

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] 2025-12-19 19:50:01 +01:00 committed by GitHub
parent f204b21ee0
commit af3e9f4bf2
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
63 changed files with 1487 additions and 895 deletions

View file

@ -3,7 +3,7 @@ from __future__ import annotations
import time
from http import HTTPStatus
from random import uniform
from typing import Protocol
from typing import Any, Protocol
try:
import requests
@ -75,7 +75,7 @@ def exponential_backoff_function(
"""
def func(retries: int) -> float:
interval = base * multiplier**retries # Exponential backoff
interval: float = base * multiplier**retries # Exponential backoff
interval = min(cap, interval) # Cap backoff
if jitter:
interval = uniform(base, interval) # Add jitter
@ -295,7 +295,7 @@ class Client:
method: str,
url: str,
**kwargs,
) -> dict:
) -> dict[str, Any]:
"""Perform a request to the Hetzner Cloud API.
:param method: Method to perform the request.
@ -348,7 +348,7 @@ class ClientBase:
method: str,
url: str,
**kwargs,
) -> dict:
) -> dict[str, Any]:
"""Perform a request to the provided URL.
:param method: Method to perform the request.
@ -384,7 +384,7 @@ class ClientBase:
continue
raise
def _read_response(self, response) -> dict:
def _read_response(self, response) -> dict[str, Any]:
correlation_id = response.headers.get("X-Correlation-Id")
payload = {}
try:
@ -407,7 +407,7 @@ class ClientBase:
correlation_id=correlation_id,
)
error: dict = payload["error"]
error: dict[str, Any] = payload["error"]
raise APIException(
code=error["code"],
message=error["message"],