From 11ffbd9d43d6f90fe75759f70eae9134347fe4ad Mon Sep 17 00:00:00 2001 From: "renovate[bot]" <29139614+renovate[bot]@users.noreply.github.com> Date: Fri, 13 Oct 2023 16:26:39 +0200 Subject: [PATCH] deps: update dependency hcloud to v1.30.0 (#358) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit [![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.29.1` -> `1.30.0` | [![age](https://developer.mend.io/api/mc/badges/age/pypi/hcloud/1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![adoption](https://developer.mend.io/api/mc/badges/adoption/pypi/hcloud/1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![passing](https://developer.mend.io/api/mc/badges/compatibility/pypi/hcloud/1.29.1/1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | [![confidence](https://developer.mend.io/api/mc/badges/confidence/pypi/hcloud/1.29.1/1.30.0?slim=true)](https://docs.renovatebot.com/merge-confidence/) | --- ### ⚠ Dependency Lookup Warnings ⚠ Warnings were logged while processing this repo. Please check the Dependency Dashboard for more information. --- ### Release Notes
hetznercloud/hcloud-python (hcloud) ### [`v1.30.0`](https://togithub.com/hetznercloud/hcloud-python/blob/HEAD/CHANGELOG.md#1300-2023-10-13) [Compare Source](https://togithub.com/hetznercloud/hcloud-python/compare/v1.29.1...v1.30.0) ##### Features - add deprecation field to Iso ([#​318](https://togithub.com/hetznercloud/hcloud-python/issues/318)) ([036b52f](https://togithub.com/hetznercloud/hcloud-python/commit/036b52fe51bcbb6b610c0c99ca224d3c4bbfc68d)) - support python 3.12 ([#​311](https://togithub.com/hetznercloud/hcloud-python/issues/311)) ([7e8cd1d](https://togithub.com/hetznercloud/hcloud-python/commit/7e8cd1d92e56d210fe3fb180e403122ef0e7bd7f)) ##### Dependencies - update dependency mypy to >=1.6,<1.7 ([#​317](https://togithub.com/hetznercloud/hcloud-python/issues/317)) ([d248bbd](https://togithub.com/hetznercloud/hcloud-python/commit/d248bbd4e55f3bcf6a107cfa4f38768df0bf3de5)) - update dependency pylint to v3 ([#​307](https://togithub.com/hetznercloud/hcloud-python/issues/307)) ([277841d](https://togithub.com/hetznercloud/hcloud-python/commit/277841dd84ba3b2bbc99a06a3f97e114d1c83dcb)) - update pre-commit hook asottile/pyupgrade to v3.14.0 ([#​308](https://togithub.com/hetznercloud/hcloud-python/issues/308)) ([07a4513](https://togithub.com/hetznercloud/hcloud-python/commit/07a4513e284b9ee964bca003d0a9dfd948d39b02)) - update pre-commit hook asottile/pyupgrade to v3.15.0 ([#​312](https://togithub.com/hetznercloud/hcloud-python/issues/312)) ([c544639](https://togithub.com/hetznercloud/hcloud-python/commit/c5446394acfa25d23761da4c6b5b75fb6d376b23)) - update pre-commit hook pre-commit/pre-commit-hooks to v4.5.0 ([#​313](https://togithub.com/hetznercloud/hcloud-python/issues/313)) ([e51eaa9](https://togithub.com/hetznercloud/hcloud-python/commit/e51eaa990336251c2afc8c83d4c5e6f5e5bb857b)) - update python docker tag to v3.12 ([#​309](https://togithub.com/hetznercloud/hcloud-python/issues/309)) ([3a1ee67](https://togithub.com/hetznercloud/hcloud-python/commit/3a1ee675f2c980a4d9e63188e8ffceb64f4797fc))
--- ### 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. --- - [ ] 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). --------- Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: jo --- .../module_utils/vendor/hcloud/_version.py | 2 +- .../module_utils/vendor/hcloud/isos/domain.py | 20 +++++++++++++++++-- .../vendor/hcloud/servers/client.py | 6 ++++-- scripts/vendor.py | 2 +- 4 files changed, 24 insertions(+), 6 deletions(-) diff --git a/plugins/module_utils/vendor/hcloud/_version.py b/plugins/module_utils/vendor/hcloud/_version.py index 21bc9b86..1a01ca7a 100644 --- a/plugins/module_utils/vendor/hcloud/_version.py +++ b/plugins/module_utils/vendor/hcloud/_version.py @@ -1,3 +1,3 @@ from __future__ import annotations -VERSION = "1.29.1" # x-release-please-version +VERSION = "1.30.0" # x-release-please-version diff --git a/plugins/module_utils/vendor/hcloud/isos/domain.py b/plugins/module_utils/vendor/hcloud/isos/domain.py index 99be0a06..3a5d814c 100644 --- a/plugins/module_utils/vendor/hcloud/isos/domain.py +++ b/plugins/module_utils/vendor/hcloud/isos/domain.py @@ -6,6 +6,7 @@ isoparse = None from ..core import BaseDomain, DomainIdentityMixin +from ..deprecation import DeprecationInfo class Iso(BaseDomain, DomainIdentityMixin): @@ -22,10 +23,21 @@ class Iso(BaseDomain, DomainIdentityMixin): :param architecture: str, None CPU Architecture that the ISO is compatible with. None means that the compatibility is unknown. Choices: `x86`, `arm` :param deprecated: datetime, None - ISO 8601 timestamp of deprecation, None if ISO is still available. After the deprecation time it will no longer be possible to attach the ISO to servers. + ISO 8601 timestamp of deprecation, None if ISO is still available. After the deprecation time it will no longer be possible to attach the ISO to servers. This field is deprecated. Use `deprecation` instead. + :param deprecation: :class:`DeprecationInfo `, None + Describes if, when & how the resources was deprecated. If this field is set to None the resource is not + deprecated. If it has a value, it is considered deprecated. """ - __slots__ = ("id", "name", "type", "architecture", "description", "deprecated") + __slots__ = ( + "id", + "name", + "type", + "architecture", + "description", + "deprecated", + "deprecation", + ) def __init__( self, @@ -35,6 +47,7 @@ def __init__( architecture: str | None = None, description: str | None = None, deprecated: str | None = None, + deprecation: dict | None = None, ): self.id = id self.name = name @@ -42,3 +55,6 @@ def __init__( self.architecture = architecture self.description = description self.deprecated = isoparse(deprecated) if deprecated else None + self.deprecation = ( + DeprecationInfo.from_dict(deprecation) if deprecation is not None else None + ) diff --git a/plugins/module_utils/vendor/hcloud/servers/client.py b/plugins/module_utils/vendor/hcloud/servers/client.py index 5cbd48a2..ea728512 100644 --- a/plugins/module_utils/vendor/hcloud/servers/client.py +++ b/plugins/module_utils/vendor/hcloud/servers/client.py @@ -9,8 +9,6 @@ from ..floating_ips import BoundFloatingIP from ..images import BoundImage, CreateImageResponse from ..isos import BoundIso -from ..networks import BoundNetwork # noqa -from ..networks import Network # noqa from ..placement_groups import BoundPlacementGroup from ..primary_ips import BoundPrimaryIP from ..server_types import BoundServerType @@ -35,6 +33,7 @@ from ..images import Image from ..isos import Iso from ..locations import BoundLocation, Location + from ..networks import BoundNetwork, Network from ..placement_groups import PlacementGroup from ..server_types import ServerType from ..ssh_keys import BoundSSHKey, SSHKey @@ -131,6 +130,9 @@ def __init__(self, client: ServersClient, data: dict, complete: bool = True): private_nets = data.get("private_net") if private_nets: + # pylint: disable=import-outside-toplevel + from ..networks import BoundNetwork + private_nets = [ PrivateNet( network=BoundNetwork( diff --git a/scripts/vendor.py b/scripts/vendor.py index dfe9bf26..089c6294 100755 --- a/scripts/vendor.py +++ b/scripts/vendor.py @@ -20,7 +20,7 @@ logger = logging.getLogger("vendor") HCLOUD_SOURCE_URL = "https://github.com/hetznercloud/hcloud-python" -HCLOUD_VERSION = "v1.29.1" +HCLOUD_VERSION = "v1.30.0" HCLOUD_VENDOR_PATH = "plugins/module_utils/vendor/hcloud"