mirror of
https://github.com/ansible-collections/hetzner.hcloud
synced 2025-03-04 15:07:14 +00:00
deps: update dependency hcloud to v1.30.0 (#358)
[](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` | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](https://docs.renovatebot.com/merge-confidence/) | [](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 ([#​318](https://togithub.com/hetznercloud/hcloud-python/issues/318)) ([036b52f](036b52fe51
)) - support python 3.12 ([#​311](https://togithub.com/hetznercloud/hcloud-python/issues/311)) ([7e8cd1d](7e8cd1d92e
)) ##### Dependencies - update dependency mypy to >=1.6,<1.7 ([#​317](https://togithub.com/hetznercloud/hcloud-python/issues/317)) ([d248bbd](d248bbd4e5
)) - update dependency pylint to v3 ([#​307](https://togithub.com/hetznercloud/hcloud-python/issues/307)) ([277841d](277841dd84
)) - update pre-commit hook asottile/pyupgrade to v3.14.0 ([#​308](https://togithub.com/hetznercloud/hcloud-python/issues/308)) ([07a4513](07a4513e28
)) - update pre-commit hook asottile/pyupgrade to v3.15.0 ([#​312](https://togithub.com/hetznercloud/hcloud-python/issues/312)) ([c544639](c5446394ac
)) - update pre-commit hook pre-commit/pre-commit-hooks to v4.5.0 ([#​313](https://togithub.com/hetznercloud/hcloud-python/issues/313)) ([e51eaa9](e51eaa9903
)) - update python docker tag to v3.12 ([#​309](https://togithub.com/hetznercloud/hcloud-python/issues/309)) ([3a1ee67](3a1ee675f2
)) </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 <ljonas@riseup.net>
This commit is contained in:
parent
654ec14310
commit
11ffbd9d43
4 changed files with 24 additions and 6 deletions
|
@ -1,3 +1,3 @@
|
|||
from __future__ import annotations
|
||||
|
||||
VERSION = "1.29.1" # x-release-please-version
|
||||
VERSION = "1.30.0" # x-release-please-version
|
||||
|
|
|
@ -6,6 +6,7 @@ except ImportError:
|
|||
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 <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,
|
||||
|
@ -35,6 +47,7 @@ class Iso(BaseDomain, DomainIdentityMixin):
|
|||
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 @@ class Iso(BaseDomain, DomainIdentityMixin):
|
|||
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
|
||||
)
|
||||
|
|
|
@ -9,8 +9,6 @@ from ..firewalls import BoundFirewall
|
|||
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 @@ if TYPE_CHECKING:
|
|||
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 @@ class BoundServer(BoundModelBase, Server):
|
|||
|
||||
private_nets = data.get("private_net")
|
||||
if private_nets:
|
||||
# pylint: disable=import-outside-toplevel
|
||||
from ..networks import BoundNetwork
|
||||
|
||||
private_nets = [
|
||||
PrivateNet(
|
||||
network=BoundNetwork(
|
||||
|
|
|
@ -20,7 +20,7 @@ from textwrap import dedent
|
|||
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"
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue