Skip to content

Releases: hetznercloud/hcloud-python

v2.9.0

13 Oct 08:54
c6aadce
Compare
Choose a tag to compare

Features

  • support python 3.14 (#566)
  • drop support for python 3.9 (#574)

v2.8.0

07 Oct 08:19
36670bd
Compare
Choose a tag to compare

DNS API Beta

This release adds support for the new DNS API.

The DNS API is currently in beta, which will likely end on 10 November 2025. After the beta ended, it will no longer be possible to create new zones in the old DNS system. See the DNS Beta FAQ for more details.

Future minor releases of this project may include breaking changes for features that are related to the DNS API.

See the DNS API Beta changelog for more details.

Examples

resp = client.zones.create(
    name="example.com",
    mode="primary",
    labels={"key": "value"},
    rrsets=[
        ZoneRRSet(
            name="@",
            type="A",
            records=[
                ZoneRecord(value="201.180.75.2", comment="server1")
            ],
        )
    ],
)

resp.action.wait_until_finished()
zone = resp.zone

Features

  • add new ip_range param to load balancer attach_to_network (#562)
  • add new ip_range param to server attach_to_network (#561)
  • support the new DNS API (#568)

Bug Fixes

  • source_ips property is optional in firewall rule (#567)

v2.7.0

26 Sep 08:03
bbee5a7
Compare
Choose a tag to compare

Server Types now depend on Locations.

  • We added a new locations property to the Server Types resource. The new property defines a list of supported Locations and additional per Locations details such as deprecations information.

  • We deprecated the deprecation property from the Server Types resource. The property will gradually be phased out as per Locations deprecations are being announced. Please use the new per Locations deprecation information instead.

See our changelog for more details.

Upgrading

# Before
def validate_server_type(server_type: ServerType):
    if server_type.deprecation is not None:
        raise ValueError(f"server type {server_type.name} is deprecated")
# After
def validate_server_type(server_type: ServerType, location: Location):
    found = [o for o in server_type.locations if location.name == o.location.name]
    if not found:
        raise ValueError(
            f"server type {server_type.name} is not supported in location {location.name}"
        )

    server_type_location = found[0]

    if server_type_location.deprecation is not None:
        raise ValueError(
            f"server type {server_type.name} is deprecated in location {location.name}"
        )

Features

  • per location server types (#558)

v2.6.0

08 Sep 10:13
dc3b3eb
Compare
Choose a tag to compare

Features

  • add category property to server type (#549)

Bug Fixes

  • rename ClientEntityBase to ResourceClientBase (#532)

v2.5.4

09 Jul 09:50
ca250a9
Compare
Choose a tag to compare

Bug Fixes

  • typo in LoadBalancerHealthCheckHttp class name (#511)
  • equality for some domain classes (#510)
  • use valid license identifier (SPDX) (#514)

v2.5.3

10 Jun 16:14
7a2eabc
Compare
Choose a tag to compare

Bug Fixes

  • invalid placement group id casting (#501)
  • handle string id when checking has_id_or_name (#504)

v2.5.2

23 May 09:17
c8c1ed3
Compare
Choose a tag to compare

Bug Fixes

  • listing page result always provide meta (#496)

v2.5.1

30 Apr 07:00
f7a5e18
Compare
Choose a tag to compare

Bug Fixes

  • missing slots and api_properties for FirewallResourceLabelSelector (#492)

v2.5.0

25 Apr 09:54
6a4d982
Compare
Choose a tag to compare

Features

  • improve exception messages (#488)

v2.4.0

19 Mar 15:24
b4bbb31
Compare
Choose a tag to compare

Features

  • drop support for python 3.8 (#458)
  • add equality checks to domains (#481)

Bug Fixes

  • server public ipv4 and ipv6 properties are nullable (#455)