Commit 48f3424
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
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
| 3 | + | |
| 4 | + | |
| 5 | + | |
| 6 | + | |
| 7 | + | |
| 8 | + | |
| 9 | + | |
| 10 | + | |
| 11 | + | |
| 12 | + | |
| 13 | + | |
| 14 | + | |
| 15 | + | |
| 16 | + | |
| 17 | + | |
| 18 | + | |
| 19 | + | |
| 20 | + | |
| 21 | + | |
| 22 | + | |
| 23 | + | |
| 24 | + | |
| 25 | + | |
| 26 | + | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
| 30 | + | |
| 31 | + | |
| 32 | + | |
| 33 | + | |
| 34 | + | |
| 35 | + | |
| 36 | + | |
| 37 | + | |
| 38 | + | |
3 | 39 | | |
4 | 40 | | |
5 | 41 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
1 | 1 | | |
2 | 2 | | |
3 | | - | |
| 3 | + | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
7 | 7 | | |
8 | 8 | | |
9 | 9 | | |
10 | | - | |
| 10 | + | |
11 | 11 | | |
12 | 12 | | |
13 | 13 | | |
| |||
0 commit comments