Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deps: update dependency hcloud to v1.34.0 #480

Merged
merged 2 commits into from
Mar 27, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion plugins/module_utils/vendor/hcloud/_version.py
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
from __future__ import annotations

VERSION = "1.33.3" # x-release-please-version
VERSION = "1.34.0" # x-release-please-version
18 changes: 18 additions & 0 deletions plugins/module_utils/vendor/hcloud/core/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,24 @@ def id_or_name(self) -> int | str:
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__ = (
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/firewalls/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
from ..servers import BoundServer, Server
from .client import BoundFirewall


class Firewall(BaseDomain):
class Firewall(BaseDomain, DomainIdentityMixin):
"""Firewall Domain

:param id: int
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/floating_ips/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
Expand All @@ -16,7 +16,7 @@
from .client import BoundFloatingIP


class FloatingIP(BaseDomain):
class FloatingIP(BaseDomain, DomainIdentityMixin):
"""Floating IP Domain

:param id: int
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/load_balancers/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
Expand All @@ -20,7 +20,7 @@
from .client import BoundLoadBalancer


class LoadBalancer(BaseDomain):
class LoadBalancer(BaseDomain, DomainIdentityMixin):
"""LoadBalancer Domain

:param id: int
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/networks/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
from ..servers import BoundServer
from .client import BoundNetwork


class Network(BaseDomain):
class Network(BaseDomain, DomainIdentityMixin):
"""Network Domain

:param id: int
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/placement_groups/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,14 @@
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
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/primary_ips/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,15 +7,15 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
from ..datacenters import BoundDatacenter
from .client import BoundPrimaryIP


class PrimaryIP(BaseDomain):
class PrimaryIP(BaseDomain, DomainIdentityMixin):
"""Primary IP Domain

:param id: int
Expand Down
4 changes: 2 additions & 2 deletions plugins/module_utils/vendor/hcloud/servers/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
except ImportError:
isoparse = None

from ..core import BaseDomain
from ..core import BaseDomain, DomainIdentityMixin

if TYPE_CHECKING:
from ..actions import BoundAction
Expand All @@ -25,7 +25,7 @@
from .client import BoundServer


class Server(BaseDomain):
class Server(BaseDomain, DomainIdentityMixin):
"""Server Domain

:param id: int
Expand Down
2 changes: 1 addition & 1 deletion scripts/vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@
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"


Expand Down