Skip to content

Commit 48f3424

Browse files
authored
chore(main): release v2.23.0 (#672)
### Removed deprecated Datacenter property from Server and PrimaryIP Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see [changelog entry](https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters)). > [!IMPORTANT] > **Action required:** Please update all code that accesses `server.datacenter` or `primary_ip.datacenter` to use the `location` property instead, as shown below. **Before:** ```python server = client.server.get_by_id(5) print(server.datacenter) primary_ip = client.primary_ip.get_by_id(5) print(primary_ip.datacenter) ``` **After:** ```python server = client.server.get_by_id(5) print(server.location) primary_ip = client.primary_ip.get_by_id(5) print(primary_ip.location) ``` ### Features - remove datacenter property from server and primary_ip (#668) ([abdadf3](abdadf3)) - add deprecation info to load balancer type (#674) ([aeebcf8](aeebcf8))
1 parent 381d71a commit 48f3424

3 files changed

Lines changed: 38 additions & 2 deletions

File tree

CHANGELOG.md

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,41 @@
11
# Changelog
22

3+
## [v2.23.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.23.0)
4+
5+
[Compare to previous version](https://github.com/hetznercloud/hcloud-python/compare/v2.22.0...v2.23.0)
6+
7+
### Removed deprecated Datacenter property from Server and PrimaryIP
8+
9+
Removed the deprecated Datacenter property from the Server and PrimaryIP resources. Since the property was already removed from the Hetzner Cloud API, we do not consider this a breaking change (see [changelog entry](https://docs.hetzner.cloud/changelog#2026-07-01-removing-datacenters)).
10+
11+
> [!IMPORTANT]
12+
> **Action required:** Please update all code that accesses `server.datacenter` or `primary_ip.datacenter` to use the `location` property instead, as shown below.
13+
14+
**Before:**
15+
16+
```python
17+
server = client.server.get_by_id(5)
18+
print(server.datacenter)
19+
20+
primary_ip = client.primary_ip.get_by_id(5)
21+
print(primary_ip.datacenter)
22+
```
23+
24+
**After:**
25+
26+
```python
27+
server = client.server.get_by_id(5)
28+
print(server.location)
29+
30+
primary_ip = client.primary_ip.get_by_id(5)
31+
print(primary_ip.location)
32+
```
33+
34+
### Features
35+
36+
- remove datacenter property from server and primary_ip (#668) ([abdadf3](https://github.com/hetznercloud/hcloud-python/commit/abdadf3e7cc5d0edeb38f369955fa83f71b102e5))
37+
- add deprecation info to load balancer type (#674) ([aeebcf8](https://github.com/hetznercloud/hcloud-python/commit/aeebcf8bd32df390163089a33c57815bb7214763))
38+
339
## [v2.22.0](https://github.com/hetznercloud/hcloud-python/releases/tag/v2.22.0)
440

541
### Datacenters resource is now deprecated

hcloud/_version.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11
from __future__ import annotations
22

3-
__version__ = "2.22.0" # x-releaser-pleaser-version
3+
__version__ = "2.23.0" # x-releaser-pleaser-version

setup.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
setup(
99
name="hcloud",
10-
version="2.22.0", # x-releaser-pleaser-version
10+
version="2.23.0", # x-releaser-pleaser-version
1111
keywords="hcloud hetzner cloud",
1212
description="Official Hetzner Cloud python library",
1313
long_description=readme,

0 commit comments

Comments
 (0)