Skip to content

Commit

Permalink
deps: update dependency hcloud to v1.30.0 (#358)
Browse files Browse the repository at this point in the history
[![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

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

###
[`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
([#&#8203;318](https://togithub.com/hetznercloud/hcloud-python/issues/318))
([036b52f](https://togithub.com/hetznercloud/hcloud-python/commit/036b52fe51bcbb6b610c0c99ca224d3c4bbfc68d))
- support python 3.12
([#&#8203;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
([#&#8203;317](https://togithub.com/hetznercloud/hcloud-python/issues/317))
([d248bbd](https://togithub.com/hetznercloud/hcloud-python/commit/d248bbd4e55f3bcf6a107cfa4f38768df0bf3de5))
- update dependency pylint to v3
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;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
([#&#8203;309](https://togithub.com/hetznercloud/hcloud-python/issues/309))
([3a1ee67](https://togithub.com/hetznercloud/hcloud-python/commit/3a1ee675f2c980a4d9e63188e8ffceb64f4797fc))

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

---------

Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
Co-authored-by: jo <[email protected]>
  • Loading branch information
renovate[bot] and jooola authored Oct 13, 2023
1 parent 654ec14 commit 11ffbd9
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 6 deletions.
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.29.1" # x-release-please-version
VERSION = "1.30.0" # x-release-please-version
20 changes: 18 additions & 2 deletions plugins/module_utils/vendor/hcloud/isos/domain.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
isoparse = None

from ..core import BaseDomain, DomainIdentityMixin
from ..deprecation import DeprecationInfo


class Iso(BaseDomain, DomainIdentityMixin):
Expand All @@ -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 <hcloud.deprecation.domain.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,
Expand All @@ -35,10 +47,14 @@ def __init__(
architecture: str | None = None,
description: str | None = None,
deprecated: str | None = None,
deprecation: dict | None = None,
):
self.id = id
self.name = name
self.type = type
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
)
6 changes: 4 additions & 2 deletions plugins/module_utils/vendor/hcloud/servers/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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
Expand Down Expand Up @@ -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(
Expand Down
2 changes: 1 addition & 1 deletion scripts/vendor.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"


Expand Down

0 comments on commit 11ffbd9

Please sign in to comment.