deps: update dependency hcloud to v1.34.0 (#480)

[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)

This PR contains the following updates:

| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [hcloud](https://togithub.com/hetznercloud/hcloud-python)
([changelog](https://togithub.com/hetznercloud/hcloud-python/blob/main/CHANGELOG.md))
| `1.33.3` -> `1.34.0` |
[![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.33.3/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.33.3/1.34.0?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|

---

### Release Notes

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

###
[`v1.34.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1340-2024-03-27)

[Compare
Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.33.3...v1.34.0)

##### Features

- add `has_id_or_name` to `DomainIdentityMixin`
([#&#8203;373](https://togithub.com/hetznercloud/hcloud-python/issues/373))
([8facaf6](8facaf6d4d))

</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 has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/ansible-collections/hetzner.hcloud).

<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNy4yNjkuMiIsInVwZGF0ZWRJblZlciI6IjM3LjI2OS4yIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->

---------

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] 2024-03-27 17:17:35 +01:00 committed by GitHub
parent 0d7164a9f6
commit ac80d2ba7c
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 34 additions and 16 deletions

View file

@ -1,3 +1,3 @@
from __future__ import annotations
VERSION = "1.33.3" # x-release-please-version
VERSION = "1.34.0" # x-release-please-version

View file

@ -34,6 +34,24 @@ class DomainIdentityMixin:
return self.name
raise ValueError("id or name must be set")
def has_id_or_name(self, id_or_name: int | str) -> bool:
"""
Return whether this domain has the same id or same name as the other.
The domain calling this method MUST be a bound domain or be populated, otherwise
the comparison will not work as expected (e.g. the domains are the same but
cannot be equal, if one provides an id and the other the name).
"""
values: list[int | str] = []
if self.id is not None:
values.append(self.id)
if self.name is not None:
values.append(self.name)
if not values:
raise ValueError("id or name must be set")
return id_or_name in values
class Pagination(BaseDomain):
__slots__ = (

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -15,7 +15,7 @@ if TYPE_CHECKING:
from .client import BoundFirewall
class Firewall(BaseDomain):
class Firewall(BaseDomain, DomainIdentityMixin):
"""Firewall Domain
:param id: int

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -16,7 +16,7 @@ if TYPE_CHECKING:
from .client import BoundFloatingIP
class FloatingIP(BaseDomain):
class FloatingIP(BaseDomain, DomainIdentityMixin):
"""Floating IP Domain
:param id: int

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -20,7 +20,7 @@ if TYPE_CHECKING:
from .client import BoundLoadBalancer
class LoadBalancer(BaseDomain):
class LoadBalancer(BaseDomain, DomainIdentityMixin):
"""LoadBalancer Domain
:param id: int

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -15,7 +15,7 @@ if TYPE_CHECKING:
from .client import BoundNetwork
class Network(BaseDomain):
class Network(BaseDomain, DomainIdentityMixin):
"""Network Domain
:param id: int

View file

@ -7,14 +7,14 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
from .client import BoundPlacementGroup
class PlacementGroup(BaseDomain):
class PlacementGroup(BaseDomain, DomainIdentityMixin):
"""Placement Group Domain
:param id: int

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -15,7 +15,7 @@ if TYPE_CHECKING:
from .client import BoundPrimaryIP
class PrimaryIP(BaseDomain):
class PrimaryIP(BaseDomain, DomainIdentityMixin):
"""Primary IP Domain
:param id: int

View file

@ -7,7 +7,7 @@ try:
except ImportError:
isoparse = None
from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin
if TYPE_CHECKING:
from ..actions import BoundAction
@ -25,7 +25,7 @@ if TYPE_CHECKING:
from .client import BoundServer
class Server(BaseDomain):
class Server(BaseDomain, DomainIdentityMixin):
"""Server Domain
:param id: int

View file

@ -22,7 +22,7 @@ from textwrap import dedent
logger = logging.getLogger("vendor")
HCLOUD_SOURCE_URL = "https://github.com/hetznercloud/hcloud-python"
HCLOUD_VERSION = "v1.33.3"
HCLOUD_VERSION = "v1.34.0"
HCLOUD_VENDOR_PATH = "plugins/module_utils/vendor/hcloud"